Skip to content

Commit 768b025

Browse files
authored
test(replay): Reduce flush delay for shorter tests (#8595)
1 parent 87768e6 commit 768b025

File tree

21 files changed

+42
-42
lines changed

21 files changed

+42
-42
lines changed

packages/browser-integration-tests/suites/replay/bufferMode/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 1000,
6-
flushMaxDelay: 1000,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
});
88

99
Sentry.init({

packages/browser-integration-tests/suites/replay/compression/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
useCompression: true,
88
});
99

packages/browser-integration-tests/suites/replay/customEvents/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
useCompression: false,
88
blockAllMedia: false,
99
});

packages/browser-integration-tests/suites/replay/errors/droppedError/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
});
88

99
Sentry.init({

packages/browser-integration-tests/suites/replay/errors/errorModeCustomTransport/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
});
88

99
Sentry.init({

packages/browser-integration-tests/suites/replay/errors/errorNotSent/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
});
88

99
Sentry.init({

packages/browser-integration-tests/suites/replay/errors/errorsInSession/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
});
88

99
Sentry.init({

packages/browser-integration-tests/suites/replay/errors/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 1000,
6-
flushMaxDelay: 1000,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
});
88

99
Sentry.init({

packages/browser-integration-tests/suites/replay/flushing/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
useCompression: false,
88
});
99

packages/browser-integration-tests/suites/replay/keyboardEvents/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 1000,
6-
flushMaxDelay: 1000,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
});
88

99
Sentry.init({

packages/browser-integration-tests/suites/replay/largeMutations/defaultOptions/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
});
88

99
Sentry.init({

packages/browser-integration-tests/suites/replay/largeMutations/mutationLimit/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
mutationLimit: 250,
88
});
99

packages/browser-integration-tests/suites/replay/multiple-pages/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
});
88

99
Sentry.init({

packages/browser-integration-tests/suites/replay/requests/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
useCompression: false,
88
});
99

packages/browser-integration-tests/suites/replay/sessionExpiry/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
});
88

99
Sentry.init({

packages/browser-integration-tests/suites/replay/sessionInactive/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
});
88

99
Sentry.init({

packages/browser-integration-tests/suites/replay/sessionMaxAge/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
});
88

99
Sentry.init({

packages/browser-integration-tests/suites/replay/slowClick/disable/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
slowClickTimeout: 0,
88
});
99

packages/browser-integration-tests/suites/replay/slowClick/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
slowClickTimeout: 3100,
88
slowClickIgnoreSelectors: ['.ignore-class', '[ignore-attribute]'],
99
});

packages/browser-integration-tests/suites/replay/unicode/compressed/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
useCompression: true,
88
maskAllText: false,
99
});

packages/browser-integration-tests/suites/replay/unicode/uncompressed/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';
22

33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
5-
flushMinDelay: 500,
6-
flushMaxDelay: 500,
5+
flushMinDelay: 200,
6+
flushMaxDelay: 200,
77
useCompression: false,
88
maskAllText: false,
99
});

0 commit comments

Comments
 (0)