Skip to content

Commit

Permalink
windows oddity
Browse files Browse the repository at this point in the history
  • Loading branch information
neonphog committed Jan 22, 2025
1 parent a521810 commit 9391e79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/transport_tx5/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,14 @@ async fn restart_addr() {
});
let _t = test.build_transport(h).await;

assert_eq!(1, addr.lock().unwrap().len());
let init_len = addr.lock().unwrap().len();
assert!(init_len > 0);

test.restart().await;

tokio::time::timeout(std::time::Duration::from_secs(5), async {
loop {
if addr.lock().unwrap().len() == 2 {
if addr.lock().unwrap().len() > init_len {
// End the test, we're happy!
return;
}
Expand Down

0 comments on commit 9391e79

Please sign in to comment.