diff options
author | Richard Lau <rlau@redhat.com> | 2023-01-22 11:25:28 +0000 |
---|---|---|
committer | Richard Lau <rlau@redhat.com> | 2023-01-22 14:20:29 -0500 |
commit | d7f83c420c6bdf0ccca25ebb9520b98796dfcd8d (patch) | |
tree | 7ba803dda51f6d75b40b75773fd71c5d9beb6b01 | |
parent | 693789780b6d4f8d0958c6d5915d74a08cd62da2 (diff) | |
download | node-new-d7f83c420c6bdf0ccca25ebb9520b98796dfcd8d.tar.gz |
test: avoid left behind child processes
Extend the Linux logic to all POSIX platforms in
test-child-process-exec-abortcontroller-promisified.
PR-URL: https://github.com/nodejs/node/pull/46276
Fixes: https://github.com/nodejs/build/issues/3154
Refs: https://github.com/nodejs/node/issues/37518
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com>
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r-- | test/parallel/test-child-process-exec-abortcontroller-promisified.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-child-process-exec-abortcontroller-promisified.js b/test/parallel/test-child-process-exec-abortcontroller-promisified.js index a19b797ba6..0a409f8b99 100644 --- a/test/parallel/test-child-process-exec-abortcontroller-promisified.js +++ b/test/parallel/test-child-process-exec-abortcontroller-promisified.js @@ -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(); |