@@ -204,7 +204,9 @@ describe('HTTPTransport', () => {
204204 } catch ( e ) {
205205 expect ( e . status ) . toEqual ( 429 ) ;
206206 expect ( e . reason ) . toEqual (
207- `Transport locked till ${ new Date ( now + retryAfterSeconds * 1000 ) } due to too many requests.` ,
207+ `Transport for event requests locked till ${ new Date (
208+ now + retryAfterSeconds * 1000 ,
209+ ) } due to too many requests.`,
208210 ) ;
209211 expect ( e . payload . message ) . toEqual ( 'test' ) ;
210212 expect ( e . type ) . toEqual ( 'event' ) ;
@@ -257,7 +259,9 @@ describe('HTTPTransport', () => {
257259 } catch ( e ) {
258260 expect ( e . status ) . toEqual ( 429 ) ;
259261 expect ( e . reason ) . toEqual (
260- `Transport locked till ${ new Date ( now + retryAfterSeconds * 1000 ) } due to too many requests.` ,
262+ `Transport for event requests locked till ${ new Date (
263+ now + retryAfterSeconds * 1000 ,
264+ ) } due to too many requests.`,
261265 ) ;
262266 expect ( e . payload ) . toEqual ( eventPayload ) ;
263267 expect ( e . type ) . toEqual ( 'event' ) ;
@@ -268,7 +272,9 @@ describe('HTTPTransport', () => {
268272 } catch ( e ) {
269273 expect ( e . status ) . toEqual ( 429 ) ;
270274 expect ( e . reason ) . toEqual (
271- `Transport locked till ${ new Date ( now + retryAfterSeconds * 1000 ) } due to too many requests.` ,
275+ `Transport for transaction requests locked till ${ new Date (
276+ now + retryAfterSeconds * 1000 ,
277+ ) } due to too many requests.`,
272278 ) ;
273279 expect ( e . payload ) . toEqual ( transactionPayload ) ;
274280 expect ( e . type ) . toEqual ( 'transaction' ) ;
@@ -335,7 +341,9 @@ describe('HTTPTransport', () => {
335341 } catch ( e ) {
336342 expect ( e . status ) . toEqual ( 429 ) ;
337343 expect ( e . reason ) . toEqual (
338- `Transport locked till ${ new Date ( now + retryAfterSeconds * 1000 ) } due to too many requests.` ,
344+ `Transport for event requests locked till ${ new Date (
345+ now + retryAfterSeconds * 1000 ,
346+ ) } due to too many requests.`,
339347 ) ;
340348 expect ( e . payload ) . toEqual ( eventPayload ) ;
341349 expect ( e . type ) . toEqual ( 'event' ) ;
@@ -391,7 +399,9 @@ describe('HTTPTransport', () => {
391399 } catch ( e ) {
392400 expect ( e . status ) . toEqual ( 429 ) ;
393401 expect ( e . reason ) . toEqual (
394- `Transport locked till ${ new Date ( now + retryAfterSeconds * 1000 ) } due to too many requests.` ,
402+ `Transport for event requests locked till ${ new Date (
403+ now + retryAfterSeconds * 1000 ,
404+ ) } due to too many requests.`,
395405 ) ;
396406 expect ( e . payload ) . toEqual ( eventPayload ) ;
397407 expect ( e . type ) . toEqual ( 'event' ) ;
@@ -402,7 +412,9 @@ describe('HTTPTransport', () => {
402412 } catch ( e ) {
403413 expect ( e . status ) . toEqual ( 429 ) ;
404414 expect ( e . reason ) . toEqual (
405- `Transport locked till ${ new Date ( now + retryAfterSeconds * 1000 ) } due to too many requests.` ,
415+ `Transport for session requests locked till ${ new Date (
416+ now + retryAfterSeconds * 1000 ,
417+ ) } due to too many requests.`,
406418 ) ;
407419 expect ( e . payload . environment ) . toEqual ( sessionPayload . environment ) ;
408420 expect ( e . payload . release ) . toEqual ( sessionPayload . release ) ;
@@ -415,7 +427,9 @@ describe('HTTPTransport', () => {
415427 } catch ( e ) {
416428 expect ( e . status ) . toEqual ( 429 ) ;
417429 expect ( e . reason ) . toEqual (
418- `Transport locked till ${ new Date ( now + retryAfterSeconds * 1000 ) } due to too many requests.` ,
430+ `Transport for transaction requests locked till ${ new Date (
431+ now + retryAfterSeconds * 1000 ,
432+ ) } due to too many requests.`,
419433 ) ;
420434 expect ( e . payload ) . toEqual ( transactionPayload ) ;
421435 expect ( e . type ) . toEqual ( 'transaction' ) ;
@@ -474,7 +488,9 @@ describe('HTTPTransport', () => {
474488 } catch ( e ) {
475489 expect ( e . status ) . toEqual ( 429 ) ;
476490 expect ( e . reason ) . toEqual (
477- `Transport locked till ${ new Date ( now + retryAfterSeconds * 1000 ) } due to too many requests.` ,
491+ `Transport for event requests locked till ${ new Date (
492+ now + retryAfterSeconds * 1000 ,
493+ ) } due to too many requests.`,
478494 ) ;
479495 expect ( e . payload ) . toEqual ( eventPayload ) ;
480496 expect ( e . type ) . toEqual ( 'event' ) ;
@@ -485,7 +501,9 @@ describe('HTTPTransport', () => {
485501 } catch ( e ) {
486502 expect ( e . status ) . toEqual ( 429 ) ;
487503 expect ( e . reason ) . toEqual (
488- `Transport locked till ${ new Date ( now + retryAfterSeconds * 1000 ) } due to too many requests.` ,
504+ `Transport for transaction requests locked till ${ new Date (
505+ now + retryAfterSeconds * 1000 ,
506+ ) } due to too many requests.`,
489507 ) ;
490508 expect ( e . payload ) . toEqual ( transactionPayload ) ;
491509 expect ( e . type ) . toEqual ( 'transaction' ) ;
@@ -539,7 +557,9 @@ describe('HTTPTransport', () => {
539557 } catch ( e ) {
540558 expect ( e . status ) . toEqual ( 429 ) ;
541559 expect ( e . reason ) . toEqual (
542- `Transport locked till ${ new Date ( now + retryAfterSeconds * 1000 ) } due to too many requests.` ,
560+ `Transport for event requests locked till ${ new Date (
561+ now + retryAfterSeconds * 1000 ,
562+ ) } due to too many requests.`,
543563 ) ;
544564 expect ( e . payload ) . toEqual ( eventPayload ) ;
545565 expect ( e . type ) . toEqual ( 'event' ) ;
@@ -586,7 +606,9 @@ describe('HTTPTransport', () => {
586606 } catch ( e ) {
587607 expect ( e . status ) . toEqual ( 429 ) ;
588608 expect ( e . reason ) . toEqual (
589- `Transport locked till ${ new Date ( now + retryAfterSeconds * 1000 ) } due to too many requests.` ,
609+ `Transport for event requests locked till ${ new Date (
610+ now + retryAfterSeconds * 1000 ,
611+ ) } due to too many requests.`,
590612 ) ;
591613 expect ( e . payload ) . toEqual ( eventPayload ) ;
592614 expect ( e . type ) . toEqual ( 'event' ) ;
0 commit comments