From 83c8429010d82ae4bd0fe7086bf8994a836b934b Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Tue, 2 May 2023 22:08:56 +0200 Subject: [PATCH] test: fix WPT state when process exits but workers are still running --- test/common/wpt.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/common/wpt.js b/test/common/wpt.js index a4d8545fc80351..9b359877b29edd 100644 --- a/test/common/wpt.js +++ b/test/common/wpt.js @@ -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