From 9cbf60ea64b0875f525ccd75651aeb3b7605ea02 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 16 Feb 2026 17:30:00 +0000 Subject: test: fix all tests that use publish that expect whitespace then something --- test_utils/src/relay.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test_utils') diff --git a/test_utils/src/relay.rs b/test_utils/src/relay.rs index 9582bfd..3419271 100644 --- a/test_utils/src/relay.rs +++ b/test_utils/src/relay.rs @@ -267,6 +267,15 @@ pub fn expect_send_with_progress( break; } } + let mut s = String::new(); + loop { + s.push_str(&p.expect_eventually(&last_relay_outcome)?); + s.push_str(&last_relay_outcome); + if relays.iter().all(|r| s.contains(&outcome_message(r))) { + // all responses have been received with correct outcome + break; + } + } Ok(()) } -- cgit v1.2.3