Fix flag tests

This commit is contained in:
Mac L
2023-12-13 13:17:21 +11:00
parent 88ebe36f7c
commit 6117ceffc2

View File

@@ -476,11 +476,13 @@ fn monitoring_endpoint() {
}); });
} }
#[test] #[test]
fn disable_run_on_all_default() { fn disable_run_on_all_flag() {
CommandLineTest::new().run().with_config(|config| { CommandLineTest::new()
assert!(!config.beacon_node_fallback.disable_run_on_all); .flag("disable-run-on-all", None)
assert_eq!(config.broadcast_topics, vec![]); .run()
}); .with_config(|config| {
assert_eq!(config.broadcast_topics, vec![]);
});
// --broadcast flag takes precedence // --broadcast flag takes precedence
CommandLineTest::new() CommandLineTest::new()
.flag("disable-run-on-all", None) .flag("disable-run-on-all", None)