Skip to content
Merged
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
6 changes: 5 additions & 1 deletion test/e2e/lib/framework/serverApps/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ export function createMockServerApp(servers: Servers, setup: string, setupOption
})

app.get('/empty.css', (_req, res) => {
res.header('content-type', 'text/css').end()
// 50ms delay: WebKit clamps PerformanceResourceTiming timestamps to 1ms. Without a delay,
// a zero-byte response on fast (Linux CI) loopback occasionally completes within a single
// tick, collapsing every timestamp to the same value and making the SDK report duration: 0
// — which made `rum resources › retrieve early requests timings` the top flaky E2E this week.
setTimeout(() => res.header('content-type', 'text/css').end(), 50)
})

app.get('/flush', (_req, res) => {
Expand Down
Loading