Skip to content

Commit

Permalink
test: avoid left behind child processes
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
richardlau authored and juanarbol committed Mar 3, 2023
1 parent c20b7f3 commit c5fedac
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const invalidArgTypeError = {
name: 'TypeError'
};

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

{
const ac = new AbortController();
Expand Down

0 comments on commit c5fedac

Please sign in to comment.