Browse Source

test: fix visibility flake on mac (#26323)

John Kleinschmidt 4 years ago
parent
commit
42aa6b8ea5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spec-main/visibility-state-spec.ts

+ 1 - 1
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();