Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ sentryTest(
[SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]: { type: 'string', value: 'reportPageLoaded' },
});

// We wait for 2.5 seconds before calling Sentry.reportPageLoaded()
// the margins are to account for timing weirdness in CI to avoid flakes
// We wait for 2.5 seconds before calling Sentry.reportPageLoaded(). The span starts at navigation start,
// but the timeout only starts once the bundle has executed, so allow generous upper headroom for slow CI.
expect(spanDurationSeconds).toBeGreaterThan(2);
expect(spanDurationSeconds).toBeLessThan(3);
expect(spanDurationSeconds).toBeLessThan(4);
},
);
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ sentryTest(
['sentry.idle_span_finish_reason']: 'reportPageLoaded',
});

// We wait for 2.5 seconds before calling Sentry.reportPageLoaded()
// the margins are to account for timing weirdness in CI to avoid flakes
// We wait for 2.5 seconds before calling Sentry.reportPageLoaded(). The span starts at navigation start,
// but the timeout only starts once the bundle has executed, so allow generous upper headroom for slow CI.
expect(spanDurationSeconds).toBeGreaterThan(2);
expect(spanDurationSeconds).toBeLessThan(3);
expect(spanDurationSeconds).toBeLessThan(4);
},
);
Loading