From 9391e796d90049ea075f2386f6e0d4076893d75d Mon Sep 17 00:00:00 2001 From: neonphog Date: Wed, 22 Jan 2025 13:59:29 -0700 Subject: [PATCH] windows oddity --- crates/transport_tx5/src/test.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/transport_tx5/src/test.rs b/crates/transport_tx5/src/test.rs index 370f864..0338499 100644 --- a/crates/transport_tx5/src/test.rs +++ b/crates/transport_tx5/src/test.rs @@ -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; }