Skip to content

Commit 91396d0

Browse files
committed
Update tests
1 parent d20c03b commit 91396d0

File tree

1 file changed

+2
-3
lines changed
  • dev-packages/e2e-tests/test-applications/react-router-6/tests

1 file changed

+2
-3
lines changed

dev-packages/e2e-tests/test-applications/react-router-6/tests/sse.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ test('Waits for sse streaming when sse has been explicitly aborted', async ({ pa
4545
await fetchButton.click();
4646

4747
const rootSpan = await transactionPromise;
48-
console.log(JSON.stringify(rootSpan, null, 2));
4948
const sseFetchCall = rootSpan.spans?.filter(span => span.description === 'sse fetch call')[0] as SpanJSON;
5049
const httpGet = rootSpan.spans?.filter(span => span.description === 'GET http://localhost:8080/sse')[0] as SpanJSON;
5150

@@ -71,7 +70,7 @@ test('Waits for sse streaming when sse has been explicitly aborted', async ({ pa
7170
expect(consoleBreadcrumb?.message).toBe('Could not fetch sse AbortError: BodyStreamBuffer was aborted');
7271
});
7372

74-
test('Aborts when stream takes longer than 5s', async ({ page }) => {
73+
test('Aborts when stream takes longer than 5s, by not updating the span duration', async ({ page }) => {
7574
await page.goto('/sse');
7675

7776
const transactionPromise = waitForTransaction('react-router-6', async transactionEvent => {
@@ -102,5 +101,5 @@ test('Aborts when stream takes longer than 5s', async ({ page }) => {
102101
const resolveBodyDuration = Math.round((httpGet.timestamp as number) - httpGet.start_timestamp);
103102

104103
expect(resolveDuration).toBe(0);
105-
expect(resolveBodyDuration).toBe(7);
104+
expect(resolveBodyDuration).toBe(0);
106105
});

0 commit comments

Comments
 (0)