mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
smoke - try to mitigate hanging close (#146803)
This commit is contained in:
parent
3a90a6a46d
commit
80c13ff14f
|
@ -100,7 +100,10 @@ export class PlaywrightDriver implements IDriver {
|
|||
|
||||
// Playwright shutdown
|
||||
try {
|
||||
await measureAndLog(this.application.close(), 'playwright.close()', this.options.logger);
|
||||
await Promise.race([
|
||||
measureAndLog(this.application.close(), 'playwright.close()', this.options.logger),
|
||||
new Promise<void>(resolve => setTimeout(() => resolve(), 10000)) // TODO@bpasero mitigate https://github.com/microsoft/vscode/issues/146803
|
||||
]);
|
||||
} catch (error) {
|
||||
this.options.logger.log(`Error closing appliction (${error})`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue