aboutsummaryrefslogtreecommitdiff
path: root/tests/live_handoff.rs
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-05-31 01:11:06 +0300
committerGitHub <noreply@github.com>2026-05-31 01:11:06 +0300
commit9586ee9c3fe080efbb43e6874911fd974290d7fb (patch)
tree6db158a0140ad2691c79c2a0d8ccbea1ebacb4c7 /tests/live_handoff.rs
parentbdc189e32e7c9dd61811fe17e50ac171ca94c647 (diff)
test: harden ci flake diagnostics (#365)
Diffstat (limited to 'tests/live_handoff.rs')
-rw-r--r--tests/live_handoff.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/live_handoff.rs b/tests/live_handoff.rs
index f55b5875..7a9fb4df 100644
--- a/tests/live_handoff.rs
+++ b/tests/live_handoff.rs
@@ -755,8 +755,7 @@ fn live_handoff_accepts_old_pane_id_from_child_env() {
"params": {"pane_id": pane_id, "text": format!("printf '%s' \"$HERDR_PANE_ID\" > {}", pane_id_marker.display()), "keys": ["Enter"]}
}),
));
- support::wait_for_file(&pane_id_marker, Duration::from_secs(5));
- let old_pane_id = fs::read_to_string(&pane_id_marker).unwrap();
+ let old_pane_id = wait_for_file_contains(&pane_id_marker, "p_", Duration::from_secs(5));
assert!(
old_pane_id.starts_with("p_"),
"unexpected pane id from env: {old_pane_id:?}"