mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(electron): remove timeout from electronApp.close (#11336)
We do not have a timeout for any other close method, such as browserContext.close or browser.close, and hitting default 30 seconds is very realistic with large Electron apps.
This commit is contained in:
parent
9db6ac4405
commit
807f70bccf
@ -83,7 +83,7 @@ export class ElectronApplication extends SdkObject {
|
||||
|
||||
async close() {
|
||||
const progressController = new ProgressController(internalCallMetadata(), this);
|
||||
const closed = progressController.run(progress => helper.waitForEvent(progress, this, ElectronApplication.Events.Close).promise, this._timeoutSettings.timeout({}));
|
||||
const closed = progressController.run(progress => helper.waitForEvent(progress, this, ElectronApplication.Events.Close).promise);
|
||||
await this._browserContext.close(internalCallMetadata());
|
||||
this._nodeConnection.close();
|
||||
await closed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user