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 4, 2021
1 parent ffb34b6 commit cf59fd0
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 cf59fd0

Please sign in to comment.