Skip to content

Commit cf59fd0

Browse files
committed
test: fix flaky test-child-process-exec-abortcontroller-promisified
Fixes: #37568
1 parent ffb34b6 commit cf59fd0

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

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

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

2017
{
2118
const ac = new AbortController();

0 commit comments

Comments
 (0)