@@ -491,25 +491,18 @@ describe('@sendRawTransactionExtension Acceptance Tests', function () {
491491
492492 // Submit both transactions immediately to test lock release
493493 const invalidTxPromise = relay . call ( 'eth_sendRawTransaction' , [ signedInvalidTx ] ) . catch ( ( error : any ) => error ) ;
494- const secondTxPromise = relay . sendRawTransaction ( signedSecondTx ) ;
494+ const secondTxPromise = relay . sendRawTransaction ( signedSecondTx ) . catch ( ( error : any ) => error ) ;
495495
496496 // Wait for both to complete
497- const [ invalidResult , txHash ] = await Promise . all ( [ invalidTxPromise , secondTxPromise ] ) ;
497+ const [ invalidResult , wrongNonceError ] = await Promise . all ( [ invalidTxPromise , secondTxPromise ] ) ;
498498 // Verify first tx failed with validation error
499499 expect ( invalidResult ) . to . be . instanceOf ( Error ) ;
500500 expect ( invalidResult . message ) . to . include ( 'gas price' ) ;
501-
502501 // Verify lock was released (second tx was allowed to proceed)
503- expect ( txHash ) . to . exist ;
504-
502+ expect ( wrongNonceError . message ) . to . include ( 'WRONG_NONCE' ) ;
505503 // Wait for second tx to be processed
506504 await new Promise ( ( r ) => setTimeout ( r , 2100 ) ) ;
507505
508- // Second tx should result in WRONG_NONCE (filtered out by mirror node)
509- await expect ( mirrorNode . get ( `/contracts/results/${ txHash } ` ) ) . to . eventually . be . rejected . and . satisfy (
510- ( error : any ) => error . response . status === 404 ,
511- ) ;
512-
513506 // Verify account nonce hasn't changed (neither tx succeeded)
514507 const finalNonce = await relay . getAccountNonce ( sender . address ) ;
515508 expect ( finalNonce ) . to . equal ( startNonce ) ;
0 commit comments