Skip to content

Commit

Permalink
test: fix flaky test-child-process-exec-abortcontroller-promisified
Browse files Browse the repository at this point in the history
Fixes: #37568

PR-URL: #37572
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
aduh95 authored and danielleadams committed Mar 16, 2021
1 parent e9028eb commit 0d04b6c
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ const invalidArgTypeError = {
name: 'TypeError'
};

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

{
const ac = new AbortController();
Expand Down

0 comments on commit 0d04b6c

Please sign in to comment.