diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-16 17:30:00 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-16 17:30:00 +0000 |
| commit | 9cbf60ea64b0875f525ccd75651aeb3b7605ea02 (patch) | |
| tree | 9525abd4ace721356e3a070deef0b6ced057a600 /test_utils | |
| parent | d0dfadf9fff8e81f11677dba6920b885c818c4d4 (diff) | |
test: fix all tests that use publish
that expect whitespace then something
Diffstat (limited to 'test_utils')
| -rw-r--r-- | test_utils/src/relay.rs | 9 |
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 | ||