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
  • Loading branch information
aduh95 committed Mar 2, 2021
1 parent e6cbec5 commit 015a0c3
Showing 1 changed file with 3 additions and 6 deletions.
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' :
'node -e "setInterval(()=>{}, 99)"';

{
const ac = new AbortController();
Expand Down

0 comments on commit 015a0c3

Please sign in to comment.