@@ -339,11 +339,11 @@ test('Pear.run exit when child calls pipe.destroy()', async function (t) {
339
339
await Helper . untilExit ( pid )
340
340
} )
341
341
342
- test ( 'Pear.run exit when parent calls pipe.end()' , { skip : isWindows } , async function ( t ) {
342
+ test ( 'Pear.run exit when parent calls pipe.end()' , async function ( t ) {
343
343
const runEndFromParent = path . join ( dirname , 'fixtures' , 'run-end-from-parent' )
344
344
const runChild = path . join ( dirname , 'fixtures' , 'run-child' )
345
345
346
- const teardown = Helper . rig ( { runtimeArgv : [ runEndFromParent ] } )
346
+ const teardown = Helper . rig ( { runtimeArgv : [ runEndFromParent ] , clearRequireCache : '../worker' } )
347
347
t . teardown ( teardown )
348
348
349
349
const pipe = Pear . run ( runEndFromParent , [ runChild ] )
@@ -353,11 +353,11 @@ test('Pear.run exit when parent calls pipe.end()', {skip: isWindows }, async fun
353
353
await Helper . untilExit ( pid )
354
354
} )
355
355
356
- test ( 'Pear.run exit when parent calls pipe.destroy()' , { skip : isWindows } , async function ( t ) {
356
+ test ( 'Pear.run exit when parent calls pipe.destroy()' , async function ( t ) {
357
357
const runDestroyFromParent = path . join ( dirname , 'fixtures' , 'run-destroy-from-parent' )
358
358
const runChildErrorHandler = path . join ( dirname , 'fixtures' , 'run-child-error-handler' )
359
359
360
- const teardown = Helper . rig ( { runtimeArgv : [ runDestroyFromParent ] } )
360
+ const teardown = Helper . rig ( { runtimeArgv : [ runDestroyFromParent ] , clearRequireCache : '../worker' } )
361
361
t . teardown ( teardown )
362
362
363
363
const pipe = Pear . run ( runDestroyFromParent , [ runChildErrorHandler ] )
0 commit comments