@@ -37,13 +37,16 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
3737 const env = await RemixTestEnv . init ( adapter ) ;
3838 const url = `${ env . url } /action-json-response/-1` ;
3939
40- const [ transaction , event ] = await env . getMultipleEnvelopeRequest ( {
40+ const envelopes = await env . getMultipleEnvelopeRequest ( {
4141 url,
4242 count : 2 ,
4343 method : 'post' ,
4444 envelopeType : [ 'transaction' , 'event' ] ,
4545 } ) ;
4646
47+ const [ transaction ] = envelopes . filter ( envelope => envelope [ 1 ] . type === 'transaction' ) ;
48+ const [ event ] = envelopes . filter ( envelope => envelope [ 1 ] . type === 'event' ) ;
49+
4750 assertSentryTransaction ( transaction [ 2 ] , {
4851 contexts : {
4952 trace : {
@@ -79,13 +82,16 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
7982 const env = await RemixTestEnv . init ( adapter ) ;
8083 const url = `${ env . url } /action-json-response/-2` ;
8184
82- const [ transaction_1 , event , transaction_2 ] = await env . getMultipleEnvelopeRequest ( {
85+ const envelopes = await env . getMultipleEnvelopeRequest ( {
8386 url,
8487 count : 3 ,
8588 method : 'post' ,
8689 envelopeType : [ 'transaction' , 'event' ] ,
8790 } ) ;
8891
92+ const [ transaction_1 , transaction_2 ] = envelopes . filter ( envelope => envelope [ 1 ] . type === 'transaction' ) ;
93+ const [ event ] = envelopes . filter ( envelope => envelope [ 1 ] . type === 'event' ) ;
94+
8995 assertSentryTransaction ( transaction_1 [ 2 ] , {
9096 contexts : {
9197 trace : {
0 commit comments