diff --git a/packages/browser-integration-tests/scripts/detectFlakyTests.ts b/packages/browser-integration-tests/scripts/detectFlakyTests.ts index 88435731137e..11eb04e651e4 100644 --- a/packages/browser-integration-tests/scripts/detectFlakyTests.ts +++ b/packages/browser-integration-tests/scripts/detectFlakyTests.ts @@ -3,8 +3,6 @@ import * as path from 'path'; import * as childProcess from 'child_process'; import { promisify } from 'util'; -const exec = promisify(childProcess.exec); - async function run(): Promise { let testPaths: string[] = []; diff --git a/packages/browser-integration-tests/suites/replay/minReplayDuration/test.ts b/packages/browser-integration-tests/suites/replay/minReplayDuration/test.ts index 1e429c934c7e..1bdb0567de77 100644 --- a/packages/browser-integration-tests/suites/replay/minReplayDuration/test.ts +++ b/packages/browser-integration-tests/suites/replay/minReplayDuration/test.ts @@ -41,7 +41,7 @@ document.dispatchEvent(new Event('visibilitychange'));`); expect(counter).toBe(0); // Now wait for 2s until min duration is reached, and try again - await new Promise(resolve => setTimeout(resolve, MIN_DURATION)); + await new Promise(resolve => setTimeout(resolve, MIN_DURATION + 100)); await page.evaluate(`Object.defineProperty(document, 'visibilityState', { configurable: true, get: function () {