Skip to content

Commit da0d42a

Browse files
committed
unflake test?
1 parent ee8b138 commit da0d42a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/browser-integration-tests/scripts/detectFlakyTests.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import * as path from 'path';
33
import * as childProcess from 'child_process';
44
import { promisify } from 'util';
55

6-
const exec = promisify(childProcess.exec);
7-
86
async function run(): Promise<void> {
97
let testPaths: string[] = [];
108

packages/browser-integration-tests/suites/replay/minReplayDuration/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ document.dispatchEvent(new Event('visibilitychange'));`);
4141
expect(counter).toBe(0);
4242

4343
// Now wait for 2s until min duration is reached, and try again
44-
await new Promise(resolve => setTimeout(resolve, MIN_DURATION));
44+
await new Promise(resolve => setTimeout(resolve, MIN_DURATION + 100));
4545
await page.evaluate(`Object.defineProperty(document, 'visibilityState', {
4646
configurable: true,
4747
get: function () {

0 commit comments

Comments
 (0)