Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/daemon/remote/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1589,11 +1589,18 @@ async fn reconnecting_does_not_reset_the_pairing_limit() {
})
.await;
wait_until("A sees B again", || a.sees("mB")).await;
// B's own link must be back too, or the request can end for another
// reason than the limit (seen on a loaded CI runner).
wait_until("B's link is connected again", || {
b.link.status().relay == RelayState::Connected
})
.await;
let mut events = a.link.pair(&b.id).await.unwrap();
let PairEvent::Cancelled { reason, .. } = next_pair_event(&mut events).await else {
panic!("not busy");
let event = next_pair_event(&mut events).await;
let PairEvent::Cancelled { reason, .. } = &event else {
panic!("not busy: {event:?}");
};
assert_eq!(reason, "busy");
assert_eq!(reason, "busy", "{event:?}");
}

#[tokio::test]
Expand Down
Loading