diff options
Diffstat (limited to 'test/automation/src/code.ts')
-rw-r--r-- | test/automation/src/code.ts | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/automation/src/code.ts b/test/automation/src/code.ts index ed88fd3c2b8..f8dfe1db136 100644 --- a/test/automation/src/code.ts +++ b/test/automation/src/code.ts @@ -164,11 +164,6 @@ export class Code { }); } - if (retries === 40) { - done = true; - reject(new Error('Smoke test exit call did not terminate process after 20s, giving up')); - } - try { process.kill(pid, 0); // throws an exception if the process doesn't exist anymore. await new Promise(resolve => setTimeout(resolve, 500)); @@ -176,6 +171,12 @@ export class Code { done = true; resolve(); } + + if (retries === 60) { + done = true; + this.logger.log('Smoke test exit call did not terminate process after 30s, giving up'); + resolve(); + } } })(); }), 'Code#exit()', this.logger); |