diff options
Diffstat (limited to 'src/simtest/links.rs')
| -rw-r--r-- | src/simtest/links.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/simtest/links.rs b/src/simtest/links.rs index e8c2a36..652e3ed 100644 --- a/src/simtest/links.rs +++ b/src/simtest/links.rs @@ -203,15 +203,16 @@ async fn links_fail_over_to_another_relay() { .await; } let relayed = (c_id.clone(), vec![a_id.clone()]); - let (first, other) = if b.links.relaying().contains(&relayed) { - (&b, &d) + // With their names on the simulated net, which links are cut by. + let ((first, first_name), (other, other_name)) = if b.links.relaying().contains(&relayed) { + ((&b, "b"), (&d, "d")) } else { - (&d, &b) + ((&d, "d"), (&b, "b")) }; // The relay in use reaches c no more, nor the other relay; a still reaches it. - cut_between(first.local_id(), &c_id); - cut_between(first.local_id(), other.local_id()); + cut_between(first_name, "c"); + cut_between(first_name, other_name); let cut_at = tokio::time::Instant::now(); // a renews as a dashboard does, and gets c's links through the other relay. |
