mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
smoke - try to mitigate hanging close (#146803)
This commit is contained in:
@@ -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})`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user