Skip to content

Commit

Permalink
Fix CLI Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ethDreamer committed Jan 3, 2024
1 parent b7ff1c1 commit 328ad6c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lighthouse/tests/beacon_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ struct CommandLineTest {
}
impl CommandLineTest {
fn new() -> CommandLineTest {
let mut base_cmd = base_cmd();
base_cmd.arg("--allow-insecure-genesis-sync");
CommandLineTest { cmd: base_cmd }
}

fn without_allow_genesis_sync() -> CommandLineTest {
let base_cmd = base_cmd();
CommandLineTest { cmd: base_cmd }
}
Expand Down Expand Up @@ -92,6 +98,12 @@ fn staking_flag() {
});
}

#[test]
#[should_panic]
fn run_without_allow_genesis_sync() {
CommandLineTest::without_allow_genesis_sync().run_with_zero_port();
}

#[test]
fn wss_checkpoint_flag() {
let state = Some(Checkpoint {
Expand Down

0 comments on commit 328ad6c

Please sign in to comment.