mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 15:01:57 +01:00
smoke test - only warn when treekill fails (#155577)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user