From 42aa6b8ea5286865b32495a4db85518ec2c16439 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Tue, 3 Nov 2020 16:24:40 -0500 Subject: [PATCH] test: fix visibility flake on mac (#26323) --- spec-main/visibility-state-spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec-main/visibility-state-spec.ts b/spec-main/visibility-state-spec.ts index a3c91cd96ddf..60733f90e3a5 100644 --- a/spec-main/visibility-state-spec.ts +++ b/spec-main/visibility-state-spec.ts @@ -69,7 +69,7 @@ ifdescribe(process.platform !== 'linux')('document.visibilityState', () => { // TODO(MarshallOfSound): Figure out if we can work around this 1 tick issue for users if (process.platform === 'darwin') { // Wait for a tick, the window being "shown" takes 1 tick on macOS - await delay(0); + await delay(10000); } w.hide(); load();