Skip to content

Commit

Permalink
test: fix WPT state when process exits but workers are still running
Browse files Browse the repository at this point in the history
PR-URL: #47826
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
  • Loading branch information
panva authored and targos committed May 12, 2023
1 parent 36f7cfa commit c923367
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/common/wpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,11 +678,8 @@ class WPTRunner {
}

process.on('exit', () => {
if (this.inProgress.size > 0) {
for (const id of this.inProgress) {
const spec = this.specs.get(id);
this.fail(spec, { name: 'Unknown' }, kIncomplete);
}
for (const spec of this.inProgress) {
this.fail(spec, { name: 'Unknown' }, kIncomplete);
}
inspect.defaultOptions.depth = Infinity;
// Sorts the rules to have consistent output
Expand Down

0 comments on commit c923367

Please sign in to comment.