Commit 8cb48ba
Reduce flakiness of windows local_tty test. (warpdotdev#12881)
## Description
The Windows child-exit test used a one-shot 200 ms Mio poll after
asynchronously terminating `cmd.exe`. Under load, Windows can take
longer to signal the process handle, run the registered wait callback,
and wake Mio, causing the test to unwrap an empty event set.
Use a generous overall deadline and repeatedly poll until the channel
token is observed. Successful runs still return immediately, while
timeout failures now report the receiver state to distinguish delayed
callback delivery from a lost Mio wake.
## Linked Issue
N/A — test-only CI flake reduction.
## Testing
- `cargo fmt --all -- --check`
- `cargo check -p warp --tests`
- `git diff --check`
- Not run locally: `cargo nextest run -p warp -E
'test(test_event_is_emitted_when_child_exits)'` because the test is
Windows-only and the current host is macOS.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-NONE
Co-Authored-By: Oz <oz-agent@warp.dev>1 parent f84c6ca commit 8cb48ba
1 file changed
Lines changed: 22 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | | - | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
35 | 53 | | |
36 | 54 | | |
37 | 55 | | |
0 commit comments