File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ describe.skipIf(process.platform === "win32")("qa scenario command real POSIX li
7272 it ( "settles within a bound after the leader writes its final result with inherited stdio open" , async ( ) => {
7373 const root = await mkdtemp ( path . join ( os . tmpdir ( ) , "qa-command-settlement-" ) ) ;
7474 const descendantPidPath = path . join ( root , "descendant.pid" ) ;
75- let descendantPid : number | undefined ;
7675 spawnMock . mockImplementation ( ( ...args : Parameters < NonNullable < typeof actualSpawn . value > > ) => {
7776 if ( ! actualSpawn . value ) {
7877 throw new Error ( "real spawn unavailable" ) ;
@@ -102,7 +101,7 @@ describe.skipIf(process.platform === "win32")("qa scenario command real POSIX li
102101 env : process . env ,
103102 timeoutMs : 5_000 ,
104103 } ) ;
105- descendantPid = await waitForPidFile ( descendantPidPath ) ;
104+ await waitForPidFile ( descendantPidPath ) ;
106105 const startedAt = Date . now ( ) ;
107106 const deadline = new AbortController ( ) ;
108107 const result = await Promise . race ( [
@@ -122,9 +121,6 @@ describe.skipIf(process.platform === "win32")("qa scenario command real POSIX li
122121 stderr : "" ,
123122 } ) ;
124123 } finally {
125- if ( descendantPid && isProcessAlive ( descendantPid ) ) {
126- process . kill ( descendantPid , "SIGKILL" ) ;
127- }
128124 await rm ( root , { force : true , recursive : true } ) ;
129125 }
130126 } ) ;
You can’t perform that action at this time.
0 commit comments