mirror of
https://github.com/denoland/deno.git
synced 2024-11-15 16:43:44 -05:00
9a10668694
Although not easy to replicate in the wild, the `deno test` op sanitizer can fail when there are intervals that started before a test runs, since the op sanitizer can end up running in the time between the timer op for an interval's run resolves and the op for the next run starts. This change fixes that by adding a new macrotask callback that will run after the timer macrotask queue has drained. This ensures that there is a timer op if there are any timers which are unresolved by the time the op sanitizer runs.
6 lines
262 B
Text
6 lines
262 B
Text
Check [WILDCARD]/testdata/test/ops_sanitizer_timeout_failure.ts
|
|
running 1 test from [WILDCARD]/testdata/test/ops_sanitizer_timeout_failure.ts
|
|
test wait ... ok ([WILDCARD])
|
|
|
|
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
|
|
|