File tree 4 files changed +4
-4
lines changed
packages/browser-integration-tests/suites/replay/extendNetworkBreadcrumbs/xhr 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ sentryTest('parses response_body_size from Content-Length header if available',
39
39
xhr . addEventListener ( 'readystatechange' , function ( ) {
40
40
if ( xhr . readyState === 4 ) {
41
41
// @ts -ignore Sentry is a global
42
- Sentry . captureException ( 'test error' ) ;
42
+ setTimeout ( ( ) => Sentry . captureException ( 'test error' , 0 ) ) ;
43
43
}
44
44
} ) ;
45
45
/* eslint-enable */
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ sentryTest('captures response_body_size without Content-Length header', async ({
39
39
xhr . addEventListener ( 'readystatechange' , function ( ) {
40
40
if ( xhr . readyState === 4 ) {
41
41
// @ts -ignore Sentry is a global
42
- Sentry . captureException ( 'test error' ) ;
42
+ setTimeout ( ( ) => Sentry . captureException ( 'test error' , 0 ) ) ;
43
43
}
44
44
} ) ;
45
45
/* eslint-enable */
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ sentryTest('calculates body sizes for non-string bodies', async ({ getLocalTestP
38
38
xhr . addEventListener ( 'readystatechange' , function ( ) {
39
39
if ( xhr . readyState === 4 ) {
40
40
// @ts -ignore Sentry is a global
41
- Sentry . captureException ( 'test error' ) ;
41
+ setTimeout ( ( ) => Sentry . captureException ( 'test error' , 0 ) ) ;
42
42
}
43
43
} ) ;
44
44
/* eslint-enable */
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ sentryTest('captures request_body_size when body is sent', async ({ getLocalTest
39
39
xhr . addEventListener ( 'readystatechange' , function ( ) {
40
40
if ( xhr . readyState === 4 ) {
41
41
// @ts -ignore Sentry is a global
42
- Sentry . captureException ( 'test error' ) ;
42
+ setTimeout ( ( ) => Sentry . captureException ( 'test error' , 0 ) ) ;
43
43
}
44
44
} ) ;
45
45
/* eslint-enable */
You can’t perform that action at this time.
0 commit comments