test(stt): give the silent-stall test the same idle budget
test_silent_stall_still_times_out kept the 0.1s idle window and flaked once locally under heavy load (load avg ~250): the child was killed before its single stderr line was read, so the pre-stall-output assertion saw an empty stderr. Same class as the progress test this PR de-flakes; give it the same 0.25s budget. The 30s sleep still trips the window, so the must-time-out direction is unchanged.
This commit is contained in:
@@ -1246,10 +1246,15 @@ class TestRunCommandSttIdleTimeout:
|
||||
encoding="utf-8",
|
||||
)
|
||||
|
||||
# Same budget rule as the progress test above: the idle window must
|
||||
# comfortably exceed process spawn latency on a loaded runner, or the
|
||||
# child is killed before its first stderr line is ever read and the
|
||||
# pre-stall-output assertion fails spuriously. 30s of silence still
|
||||
# trips a 0.25s window by a wide margin.
|
||||
with pytest.raises(subprocess.TimeoutExpired) as excinfo:
|
||||
_run_command_stt(
|
||||
self._shell_command(sys.executable, "-u", str(script)),
|
||||
timeout=0.1,
|
||||
timeout=0.25,
|
||||
)
|
||||
|
||||
assert "starting pass 1" in (excinfo.value.stderr or "")
|
||||
|
||||
Reference in New Issue
Block a user