mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
Fix flag tests
This commit is contained in:
@@ -476,9 +476,11 @@ 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)
|
||||||
|
.run()
|
||||||
|
.with_config(|config| {
|
||||||
assert_eq!(config.broadcast_topics, vec![]);
|
assert_eq!(config.broadcast_topics, vec![]);
|
||||||
});
|
});
|
||||||
// --broadcast flag takes precedence
|
// --broadcast flag takes precedence
|
||||||
|
|||||||
Reference in New Issue
Block a user