mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: ignore WPT worker errors after tests finished
This can happen normally, for example in timers tests. PR-URL: https://github.com/nodejs/node/pull/37626 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
257b1ab225
commit
b7ef829dac
2 files changed
+6
-14
No files matched your search
@@ -389,6 +389,11 @@ class WPTRunner {
|
||||
});
|
||||
|
||||
worker.on('error', (err) => {
|
||||
if (!this.inProgress.has(testFileName)) {
|
||||
// The test is already finished. Ignore errors that occur after it.
|
||||
// This can happen normally, for example in timers tests.
|
||||
return;
|
||||
}
|
||||
this.fail(
|
||||
testFileName,
|
||||
{
|
||||
|
||||
@@ -1,14 +1 @@
|
||||
{
|
||||
"negative-settimeout.any.js": {
|
||||
"fail": "assert_unreached: Reached unreachable code"
|
||||
},
|
||||
"type-long-setinterval.any.js": {
|
||||
"fail": "assert_unreached: Reached unreachable code"
|
||||
},
|
||||
"type-long-settimeout.any.js": {
|
||||
"fail": "assert_unreached: Reached unreachable code"
|
||||
},
|
||||
"negative-setinterval.any.js": {
|
||||
"fail": "assert_unreached: Reached unreachable code"
|
||||
}
|
||||
}
|
||||
{}
|
||||
Reference in new issue
Block a user