test: retry beforeunload test (#23576)

This commit is contained in:
Jeremy Apthorp 2020-05-18 08:04:41 -07:00 committed by GitHub
parent 75fd9a3496
commit 8bbb68be79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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); afterEach(closeAllWindows);
it('does not emit if beforeunload returns undefined', (done) => { it('does not emit if beforeunload returns undefined', (done) => {
const w = new BrowserWindow({ show: false }); const w = new BrowserWindow({ show: false });