diff options
| author | JJ Liebig <jonathan.liebig@gmail.com> | 2026-09-14 22:41:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-14 22:41:54 +0200 |
| commit | e61206cc9d4e13688d2baed4a866c2bcd6ec0736 (patch) | |
| tree | 9fbab1165d08f5b34598486d8c24b2714f4791ce /tests/client_mode.rs | |
| parent | f867dabbe676255e75a512df343617bd4ca45d0d (diff) | |
test: deflake recent CI failures (#4139)
Diffstat (limited to 'tests/client_mode.rs')
| -rw-r--r-- | tests/client_mode.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/client_mode.rs b/tests/client_mode.rs index 9a6bee7d..a946af7c 100644 --- a/tests/client_mode.rs +++ b/tests/client_mode.rs @@ -1012,12 +1012,15 @@ fn federated_client_starts_without_local_and_survives_its_restart() { local.child.kill().unwrap(); local.close_master(); drop(local); - input - .write_all(b"printf 'REMOTE_%s\\n' SURVIVED\r") - .unwrap(); assert!( wait_until(Duration::from_secs(8), Duration::from_millis(20), || { - screen_text().contains("REMOTE_SURVIVED") + if screen_text().contains("REMOTE_SURVIVED") { + return true; + } + input + .write_all(b"printf 'REMOTE_%s\\n' SURVIVED\r") + .unwrap(); + false }), "Local loss must not interrupt remote input or output: {}", screen_text() |
