@@ -111,7 +111,7 @@ func runSubmitTransactionTest(t *testing.T, tc SubmitTransactionTestCase) {
111111func setCommonSubmitTransactionMocks (m * Mocks , ctx any ) {
112112 fromAddress := createFromAddress ()
113113 m .Workflow .EXPECT ().FromAddress ().Return (& fromAddress )
114- m .EVM .EXPECT ().ConfirmationTimeout ().Return (time .Millisecond )
114+ m .EVM .EXPECT ().ConfirmationTimeout ().Return (500 * time .Millisecond )
115115}
116116
117117func createFromAddress () types.EIP55Address {
@@ -235,11 +235,11 @@ func TestEVMService(t *testing.T) {
235235 ExpectedError : "fail getting transaction status" ,
236236 },
237237 {
238- Name : "Success with unconfirmed status and then finalized status" ,
238+ Name : "Success with pending status and then finalized status" ,
239239 SetupMocks : func (m * Mocks , ctx any ) {
240240 expectedTx := txmgr.Tx {}
241241 m .TxManager .EXPECT ().CreateTransaction (ctx , mock .Anything ).Return (expectedTx , nil )
242- m .TxManager .EXPECT ().GetTransactionStatus (ctx , mock .Anything ).Return (commontypes .Unconfirmed , nil ).Once ()
242+ m .TxManager .EXPECT ().GetTransactionStatus (ctx , mock .Anything ).Return (commontypes .Pending , nil ).Once ()
243243 m .TxManager .EXPECT ().GetTransactionStatus (ctx , mock .Anything ).Return (commontypes .Finalized , nil ).Once ()
244244 txHash := common .HexToHash ("0xabcd" )
245245 mockReceipt := NewChainReceipt (txHash , t )
0 commit comments