Skip to content

Commit c567ade

Browse files
committed
add comment
1 parent 3e74458 commit c567ade

File tree

1 file changed

+8
-0
lines changed
  • packages/integration-tests/suites/replay/flushing

1 file changed

+8
-0
lines changed

packages/integration-tests/suites/replay/flushing/test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ import { getExpectedReplayEvent } from '../../../utils/replayEventTemplates';
55
import { getReplayEvent, shouldSkipReplayTest, waitForReplayRequest } from '../../../utils/replayHelpers';
66

77
for (let index = 0; index < 50; index++) {
8+
/*
9+
* In this test we're explicitly not forcing a flush by triggering a visibility change.
10+
* Instead, we want to verify that the `flushMaxDelay` works in the sense that eventually
11+
* a flush is triggered if some events are in the buffer.
12+
* Note: Due to timing problems and inconsistencies in Playwright/CI, we can't reliably
13+
* assert on the flush timestamps. Therefore we only assert that events were eventually
14+
* sent (i.e. flushed).
15+
*/
816
sentryTest(
917
`replay events are flushed after max flash delay was reached (${index})`,
1018
async ({ getLocalTestPath, page }) => {

0 commit comments

Comments
 (0)