diff --git a/test/common/wpt.js b/test/common/wpt.js index 43b363334008d5..87d7fcf204df9f 100644 --- a/test/common/wpt.js +++ b/test/common/wpt.js @@ -299,6 +299,7 @@ class WPTRunner { this.results = {}; this.inProgress = new Set(); + this.workers = new Map(); this.unexpectedFailures = []; } @@ -376,6 +377,7 @@ class WPTRunner { scriptsToRun, }, }); + this.workers.set(testFileName, worker); worker.on('message', (message) => { switch (message.type) { @@ -501,6 +503,9 @@ class WPTRunner { this.resultCallback(filename, { status: 2, name: 'Unknown' }); } this.inProgress.delete(filename); + // Always force termination of the worker. Some tests allocate resources + // that would otherwise keep it alive. + this.workers.get(filename).terminate(); } addTestResult(filename, item) { diff --git a/test/wpt/status/FileAPI/blob.json b/test/wpt/status/FileAPI/blob.json index 23505105eafa4d..c4b809b3b4036d 100644 --- a/test/wpt/status/FileAPI/blob.json +++ b/test/wpt/status/FileAPI/blob.json @@ -1,6 +1,6 @@ { "Blob-constructor.any.js": { - "skip": "https://github.com/nodejs/node/issues/37358" + "skip": "Depends on File API" }, "Blob-constructor-dom.window.js": { "skip": "Depends on DOM API"