File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
packages/browser-integration-tests/suites/replay/extendNetworkBreadcrumbs/xhr Expand file tree Collapse file tree 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',
3939 xhr . addEventListener ( 'readystatechange' , function ( ) {
4040 if ( xhr . readyState === 4 ) {
4141 // @ts -ignore Sentry is a global
42- Sentry . captureException ( 'test error' ) ;
42+ setTimeout ( ( ) => Sentry . captureException ( 'test error' , 0 ) ) ;
4343 }
4444 } ) ;
4545 /* 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 ({
3939 xhr . addEventListener ( 'readystatechange' , function ( ) {
4040 if ( xhr . readyState === 4 ) {
4141 // @ts -ignore Sentry is a global
42- Sentry . captureException ( 'test error' ) ;
42+ setTimeout ( ( ) => Sentry . captureException ( 'test error' , 0 ) ) ;
4343 }
4444 } ) ;
4545 /* 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
3838 xhr . addEventListener ( 'readystatechange' , function ( ) {
3939 if ( xhr . readyState === 4 ) {
4040 // @ts -ignore Sentry is a global
41- Sentry . captureException ( 'test error' ) ;
41+ setTimeout ( ( ) => Sentry . captureException ( 'test error' , 0 ) ) ;
4242 }
4343 } ) ;
4444 /* 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
3939 xhr . addEventListener ( 'readystatechange' , function ( ) {
4040 if ( xhr . readyState === 4 ) {
4141 // @ts -ignore Sentry is a global
42- Sentry . captureException ( 'test error' ) ;
42+ setTimeout ( ( ) => Sentry . captureException ( 'test error' , 0 ) ) ;
4343 }
4444 } ) ;
4545 /* eslint-enable */
You can’t perform that action at this time.
0 commit comments