test: deflake long timer WPTs · nodejs/node@fb9aba6 · GitHub
Skip to content

Commit fb9aba6

Browse files
marcopiracciniaduh95
authored andcommitted
test: deflake long timer WPTs
type-long-settimeout.any.js and type-long-setinterval.any.js arm setTimeout(assert_unreached, 100) as a guard. Under load it can fire after done(), and the resulting uncaught exception can reach the WPT runner before the completion message, failing the spec. Use a script modifier to clear the guard timer from a completion callback, for these two fixtures only. The guard still fails the test when done() is never called. Signed-off-by: marcopiraccini <marco.piraccini@gmail.com> PR-URL: #63106 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
1 parent a1bfb6f commit fb9aba6

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎test/wpt/test-timers.js‎

Lines changed: 15 additions & 0 deletions

0 commit comments

Comments
 (0)