From 6117ceffc257697799ca9929ecc0e0d234186d16 Mon Sep 17 00:00:00 2001 From: Mac L Date: Wed, 13 Dec 2023 13:17:21 +1100 Subject: [PATCH] Fix flag tests --- lighthouse/tests/validator_client.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lighthouse/tests/validator_client.rs b/lighthouse/tests/validator_client.rs index 7795b0d081..bba38aa3e0 100644 --- a/lighthouse/tests/validator_client.rs +++ b/lighthouse/tests/validator_client.rs @@ -476,11 +476,13 @@ fn monitoring_endpoint() { }); } #[test] -fn disable_run_on_all_default() { - CommandLineTest::new().run().with_config(|config| { - assert!(!config.beacon_node_fallback.disable_run_on_all); - assert_eq!(config.broadcast_topics, vec![]); - }); +fn disable_run_on_all_flag() { + CommandLineTest::new() + .flag("disable-run-on-all", None) + .run() + .with_config(|config| { + assert_eq!(config.broadcast_topics, vec![]); + }); // --broadcast flag takes precedence CommandLineTest::new() .flag("disable-run-on-all", None)