Skip to content

Commit e3d3e08

Browse files
committed
fix(tests): add delay after send_keys in waiter test
why: test_wait_for_any_content_exact_match was flaky on CI due to race condition where pane content was captured before terminal finished redrawing after clear command. what: - Add time.sleep(0.3) after send_keys("clear") to let terminal redraw - Fixes timeout failures on tmux 3.3a and 3.4 in CI
1 parent 26259b1 commit e3d3e08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/_internal/test_waiter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,7 @@ def test_wait_for_any_content_exact_match(wait_pane: Pane) -> None:
14151415
"""
14161416
# Clear the pane and add specific content
14171417
wait_pane.send_keys("clear", enter=True)
1418+
time.sleep(0.3) # Let terminal redraw after clear
14181419

14191420
# Capture the current content to match it exactly later
14201421
content = wait_pane.capture_pane()

0 commit comments

Comments
 (0)