File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -299,6 +299,7 @@ class WPTRunner {
299299
300300 this . results = { } ;
301301 this . inProgress = new Set ( ) ;
302+ this . workers = new Map ( ) ;
302303 this . unexpectedFailures = [ ] ;
303304 }
304305
@@ -376,6 +377,7 @@ class WPTRunner {
376377 scriptsToRun,
377378 } ,
378379 } ) ;
380+ this . workers . set ( testFileName , worker ) ;
379381
380382 worker . on ( 'message' , ( message ) => {
381383 switch ( message . type ) {
@@ -501,6 +503,9 @@ class WPTRunner {
501503 this . resultCallback ( filename , { status : 2 , name : 'Unknown' } ) ;
502504 }
503505 this . inProgress . delete ( filename ) ;
506+ // Always force termination of the worker. Some tests allocate resources
507+ // that would otherwise keep it alive.
508+ this . workers . get ( filename ) . terminate ( ) ;
504509 }
505510
506511 addTestResult ( filename , item ) {
Original file line number Diff line number Diff line change 11{
22 "Blob-constructor.any.js" : {
3- "skip" : " https://github.com/nodejs/node/issues/37358 "
3+ "skip" : " Depends on File API "
44 },
55 "Blob-constructor-dom.window.js" : {
66 "skip" : " Depends on DOM API"
You can’t perform that action at this time.
0 commit comments