File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
packages/browser-integration-tests
suites/replay/minReplayDuration Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import * as path from 'path';
3
3
import * as childProcess from 'child_process' ;
4
4
import { promisify } from 'util' ;
5
5
6
- const exec = promisify ( childProcess . exec ) ;
7
-
8
6
async function run ( ) : Promise < void > {
9
7
let testPaths : string [ ] = [ ] ;
10
8
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ document.dispatchEvent(new Event('visibilitychange'));`);
41
41
expect ( counter ) . toBe ( 0 ) ;
42
42
43
43
// 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 ) ) ;
45
45
await page . evaluate ( `Object.defineProperty(document, 'visibilityState', {
46
46
configurable: true,
47
47
get: function () {
You can’t perform that action at this time.
0 commit comments