Enable Iroh local network discovery
This commit is contained in:
parent
280472cecb
commit
bfc5df698c
12 changed files with 136 additions and 16 deletions
|
|
@ -64,6 +64,11 @@ fn geth_init_in_temp_home() {
|
|||
.expect("read config")
|
||||
.contains("relay_mode = \"default\"")
|
||||
);
|
||||
assert!(
|
||||
std::fs::read_to_string(home.path().join("config.toml"))
|
||||
.expect("read config")
|
||||
.contains("local_discovery = true")
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
@ -75,7 +80,7 @@ fn geth_status_against_running_daemon() {
|
|||
assert!(run_geth(home.path(), &["init"]).status.success());
|
||||
std::fs::write(
|
||||
home.path().join("config.toml"),
|
||||
"[iroh]\nrelay_mode = \"disabled\"\n",
|
||||
"[iroh]\nrelay_mode = \"disabled\"\nlocal_discovery = false\n",
|
||||
)
|
||||
.expect("write config");
|
||||
let mut daemon = spawn_daemon(home.path());
|
||||
|
|
@ -95,6 +100,7 @@ fn geth_status_against_running_daemon() {
|
|||
assert!(stdout.contains("agent:"));
|
||||
assert!(stdout.contains("endpoint:"));
|
||||
assert!(stdout.contains("iroh relay: disabled"));
|
||||
assert!(stdout.contains("iroh discovery: local-network disabled"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue