upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/test_utils/src
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-16 17:30:00 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-16 17:30:00 +0000
commit9cbf60ea64b0875f525ccd75651aeb3b7605ea02 (patch)
tree9525abd4ace721356e3a070deef0b6ced057a600 /test_utils/src
parentd0dfadf9fff8e81f11677dba6920b885c818c4d4 (diff)
test: fix all tests that use publish
that expect whitespace then something
Diffstat (limited to 'test_utils/src')
-rw-r--r--test_utils/src/relay.rs9
1 files changed, 9 insertions, 0 deletions
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(
267 break; 267 break;
268 } 268 }
269 } 269 }
270 let mut s = String::new();
271 loop {
272 s.push_str(&p.expect_eventually(&last_relay_outcome)?);
273 s.push_str(&last_relay_outcome);
274 if relays.iter().all(|r| s.contains(&outcome_message(r))) {
275 // all responses have been received with correct outcome
276 break;
277 }
278 }
270 Ok(()) 279 Ok(())
271} 280}
272 281