Commit 9f1c140
test(signals): judge UNTRACKED_ASYNC_HANDLER's threshold on a test-owned clock
"stays quiet below the hold threshold, and info between the two" raced the
wall clock: a 1ms `await` had to settle under `infoMs: 10`, and on the
coverage-instrumented CI job (12× slower than a local run) it did not. The
engine reads `performance.now()` at the handler's return and at its
promise's settle, so the test now owns that clock (#3598's pattern): it
stands still unless the handler advances it — 9ms for the quiet side, 30ms
for the info side — and both `continuationMs` values are asserted exactly.
Real timers still drive the await; only the stamps are the test's.
Co-authored-by: Claude via Cursor <noreply@cursor.com>1 parent 06745e2 commit 9f1c140
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
370 | 379 | | |
371 | 380 | | |
372 | 381 | | |
| 382 | + | |
373 | 383 | | |
374 | 384 | | |
| 385 | + | |
375 | 386 | | |
376 | 387 | | |
377 | | - | |
| 388 | + | |
| 389 | + | |
378 | 390 | | |
379 | 391 | | |
| 392 | + | |
380 | 393 | | |
381 | 394 | | |
382 | 395 | | |
| |||
0 commit comments