From 8bbb68be796fdbea4322fe45c2c57b149a4594a1 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Mon, 18 May 2020 08:04:41 -0700 Subject: [PATCH] test: retry beforeunload test (#23576) --- spec-main/api-web-contents-spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec-main/api-web-contents-spec.ts b/spec-main/api-web-contents-spec.ts index 56eca4d57b54..09991be4fba2 100644 --- a/spec-main/api-web-contents-spec.ts +++ b/spec-main/api-web-contents-spec.ts @@ -41,7 +41,10 @@ describe('webContents module', () => { }); }); - describe('will-prevent-unload event', () => { + describe('will-prevent-unload event', function () { + // TODO(nornagon): de-flake this properly + this.retries(3); + afterEach(closeAllWindows); it('does not emit if beforeunload returns undefined', (done) => { const w = new BrowserWindow({ show: false });