From 597d692a233543babef89eb887be641a1de04c42 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Thu, 19 Jan 2023 11:24:47 -0500 Subject: [PATCH] test: avoid left behind child processes Extend the Linux logic in test-child-process-exec-abortcontroller-promisified to all POSIX platforms. --- .../test-child-process-exec-abortcontroller-promisified.js | 6 +++--- 1 file 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 a19b797ba6671d..0a409f8b99e0cc 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();