File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
dev-packages/e2e-tests/test-applications/react-router-6/tests Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ test('Waits for sse streaming when sse has been explicitly aborted', async ({ pa
45
45
await fetchButton . click ( ) ;
46
46
47
47
const rootSpan = await transactionPromise ;
48
- console . log ( JSON . stringify ( rootSpan , null , 2 ) ) ;
49
48
const sseFetchCall = rootSpan . spans ?. filter ( span => span . description === 'sse fetch call' ) [ 0 ] as SpanJSON ;
50
49
const httpGet = rootSpan . spans ?. filter ( span => span . description === 'GET http://localhost:8080/sse' ) [ 0 ] as SpanJSON ;
51
50
@@ -71,7 +70,7 @@ test('Waits for sse streaming when sse has been explicitly aborted', async ({ pa
71
70
expect ( consoleBreadcrumb ?. message ) . toBe ( 'Could not fetch sse AbortError: BodyStreamBuffer was aborted' ) ;
72
71
} ) ;
73
72
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 } ) => {
75
74
await page . goto ( '/sse' ) ;
76
75
77
76
const transactionPromise = waitForTransaction ( 'react-router-6' , async transactionEvent => {
@@ -102,5 +101,5 @@ test('Aborts when stream takes longer than 5s', async ({ page }) => {
102
101
const resolveBodyDuration = Math . round ( ( httpGet . timestamp as number ) - httpGet . start_timestamp ) ;
103
102
104
103
expect ( resolveDuration ) . toBe ( 0 ) ;
105
- expect ( resolveBodyDuration ) . toBe ( 7 ) ;
104
+ expect ( resolveBodyDuration ) . toBe ( 0 ) ;
106
105
} ) ;
You can’t perform that action at this time.
0 commit comments