Skip to content

Commit 64fb928

Browse files
aduh95targos
authored andcommitted
test: fix flaky test-child-process-exec-abortcontroller-promisified
Fixes: #37568 PR-URL: #37572 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent d39200c commit 64fb928

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@ const invalidArgTypeError = {
1111
name: 'TypeError'
1212
};
1313

14-
let waitCommand = '';
15-
if (common.isWindows) {
16-
waitCommand = 'TIMEOUT 120';
17-
} else {
18-
waitCommand = 'sleep 2m';
19-
}
14+
const waitCommand = common.isLinux ?
15+
'sleep 2m' :
16+
`${process.execPath} -e "setInterval(()=>{}, 99)"`;
2017

2118
{
2219
const ac = new AbortController();

0 commit comments

Comments
 (0)