Skip to content

Commit c923367

Browse files
panvatargos
authored andcommitted
test: fix WPT state when process exits but workers are still running
PR-URL: #47826 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent 36f7cfa commit c923367

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/common/wpt.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -678,11 +678,8 @@ class WPTRunner {
678678
}
679679

680680
process.on('exit', () => {
681-
if (this.inProgress.size > 0) {
682-
for (const id of this.inProgress) {
683-
const spec = this.specs.get(id);
684-
this.fail(spec, { name: 'Unknown' }, kIncomplete);
685-
}
681+
for (const spec of this.inProgress) {
682+
this.fail(spec, { name: 'Unknown' }, kIncomplete);
686683
}
687684
inspect.defaultOptions.depth = Infinity;
688685
// Sorts the rules to have consistent output

0 commit comments

Comments
 (0)