Skip to content

Commit e623e1a

Browse files
authored
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 b0ca770 commit e623e1a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/common/wpt.js

+2-5
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)