Skip to content
Open
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 @@ -85,11 +85,13 @@ test('Waits for sse streaming when sse has been explicitly aborted', async ({ pa
expect(durationInSeconds(httpGet)).toBe(0);

// Spans carry no breadcrumbs, so the abort error is validated on the console directly
expect(
consoleMessages.some(
message => message.includes('Could not fetch sse') && message.includes('BodyStreamBuffer was aborted'),
),
).toBe(true);
// The abort error is logged asynchronously after the span is sent, so it may not have arrived yet.
// Older Chromium rejects with "BodyStreamBuffer was aborted", newer with the signal's abort reason.
await expect
.poll(() =>
consoleMessages.some(message => message.includes('Could not fetch sse') && message.includes('AbortError')),
)
.toBe(true);
});

test('Aborts when stream takes longer than 5s, by not updating the span duration', async ({ page }) => {
Expand Down
Loading