Repository navigation
Commit 7c0634b
test_stop_force: sleep 2 s per row and hold the kill to half of it
test_force_returns_promptly_mid_stream spent 5 s waiting for the first
row, because the fixture sleeps before each row. Its bound was the
sleep itself, which a stop that waited out the current sleep would
still meet by a few milliseconds. The sleep is now 2 s and the forced
stop must take under half of it: a kill takes milliseconds, and a stop
that waited for the sleep now fails. The test takes 3 s less.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 6cc522a commit 7c0634b
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
71 | | - | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
0 commit comments