Skip to content

Commit 041aac3

Browse files
richardlaujuanarbol
authored andcommitted
test: avoid left behind child processes
Extend the Linux logic to all POSIX platforms in test-child-process-exec-abortcontroller-promisified. PR-URL: #46276 Fixes: nodejs/build#3154 Refs: #37518 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Ruy Adorno <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 795251b commit 041aac3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-child-process-exec-abortcontroller-promisified.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ const invalidArgTypeError = {
1010
name: 'TypeError'
1111
};
1212

13-
const waitCommand = common.isLinux ?
14-
'sleep 2m' :
15-
`${process.execPath} -e "setInterval(()=>{}, 99)"`;
13+
const waitCommand = common.isWindows ?
14+
`${process.execPath} -e "setInterval(()=>{}, 99)"` :
15+
'sleep 2m';
1616

1717
{
1818
const ac = new AbortController();

0 commit comments

Comments
 (0)