Commit 511d97f
committed
fix(tests[waiter]): replace fixed sleep with wait_for_pane_content
why: test_wait_for_pane_content_exact_match_detailed used time.sleep(0.1)
to wait for content to appear after send_keys, but on tmux 3.6+ that
interval is sometimes too short — leading to intermittent failures
when capture_pane returned an empty pane and the subsequent assertion
triggered. Surfaced by running the suite with --reruns=0.
what:
- replace time.sleep(0.1) with a wait_for_pane_content(CONTAINS) call
that waits up to 2.0s for the unique test string to appear
- this is deterministic and uses the very feature under test, so the
test no longer relies on timing for setup1 parent f16527e commit 511d97f
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1852 | 1852 | | |
1853 | 1853 | | |
1854 | 1854 | | |
1855 | | - | |
1856 | | - | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
1857 | 1864 | | |
1858 | 1865 | | |
1859 | 1866 | | |
| |||
0 commit comments