Skip to content

Commit f1e1312

Browse files
panvaMoLow
authored andcommitted
test: fix WPT state when process exits but workers are still running
PR-URL: #47826 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
1 parent 951cc7b commit f1e1312

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/common/wpt.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -613,10 +613,8 @@ class WPTRunner {
613613
}
614614

615615
process.on('exit', () => {
616-
if (this.inProgress.size > 0) {
617-
for (const filename of this.inProgress) {
618-
this.fail(filename, { name: 'Unknown' }, kIncomplete);
619-
}
616+
for (const spec of this.inProgress) {
617+
this.fail(spec, { name: 'Unknown' }, kIncomplete);
620618
}
621619
inspect.defaultOptions.depth = Infinity;
622620
// Sorts the rules to have consistent output

0 commit comments

Comments
 (0)