File tree Expand file tree Collapse file tree
apps/vscode-e2e/src/suite Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,10 +93,11 @@ const waitForAimockRequestContaining = async (
9393// suite becomes flaky again on slow CI runners, widen this value first.
9494const SUBTASK_API_HANG_DRAIN_GRACE_MS = 500
9595
96- // aimock does not observe client disconnects: after the API-hang child request is cancelled,
97- // the mock keeps the delayed stream pending server-side until the fixture's ttft has fully
98- // elapsed, then flushes the remaining chunks to the dead socket. A streamed request opened by
99- // the next test can interleave with that late flush, so wait out the remainder of the delayed
96+ // aimock 1.47.0 stops and journals a reply when the client disconnects. Before that, the mock
97+ // kept the delayed stream pending server-side until the fixture's ttft had fully elapsed, then
98+ // flushed the remaining chunks to the dead socket. A streamed request opened by the next test
99+ // could interleave with that late flush. This wait is a conservative guard kept until an e2e
100+ // run shows it is not needed: wait out the remainder of the delayed
100101// window before the next test runs. The deadline is anchored to the journal timestamp of the
101102// request this test created (never earlier traffic), and bounded by one latency window plus
102103// grace, so it cannot hide a genuine hang.
You can’t perform that action at this time.
0 commit comments