mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 20:57:10 +00:00
Enable Light Client server by default (#6950)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2522,13 +2522,26 @@ fn light_client_server_enabled() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn light_client_http_server_enabled() {
|
||||
fn light_client_server_disabled() {
|
||||
CommandLineTest::new()
|
||||
.flag("http", None)
|
||||
.flag("light-client-server", None)
|
||||
.flag("disable-light-client-server", None)
|
||||
.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);
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn light_client_http_server_disabled() {
|
||||
CommandLineTest::new()
|
||||
.flag("http", None)
|
||||
.flag("disable-light-client-server", None)
|
||||
.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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user