Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Feb 7, 2025
1 parent 325e71c commit 022f3f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion beacon_node/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ pub fn get_config<E: EthSpec>(
parse_required(cli_args, "http-duplicate-block-status")?;

client_config.http_api.enable_light_client_server =
cli_args.get_flag("light-client-server");
!cli_args.get_flag("disable-light-client-server");
}

if cli_args.get_flag("disable-light-client-server") {
Expand Down
8 changes: 5 additions & 3 deletions lighthouse/tests/beacon_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2504,9 +2504,9 @@ fn light_client_server_default() {
CommandLineTest::new()
.run_with_zero_port()
.with_config(|config| {
assert!(!config.network.enable_light_client_server);
assert!(!config.chain.enable_light_client_server);
assert!(!config.http_api.enable_light_client_server);
assert!(config.network.enable_light_client_server);
assert!(config.chain.enable_light_client_server);
assert!(config.http_api.enable_light_client_server);
});
}

Expand Down Expand Up @@ -2540,6 +2540,8 @@ fn light_client_http_server_disabled() {
.run_with_zero_port()
.with_config(|config| {
assert!(!config.http_api.enable_light_client_server);
assert!(!config.network.enable_light_client_server);
assert!(!config.chain.enable_light_client_server);
});
}

Expand Down

0 comments on commit 022f3f8

Please sign in to comment.