Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechos committed Dec 10, 2024
1 parent 5e13b9f commit 3156132
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions rpc/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1281,17 +1281,6 @@ func TestTransactionStatus(t *testing.T) {
require.NotNil(t, err)
require.Equal(t, err, rpc.ErrTxnHashNotFound)
})

t.Run("not received", func(t *testing.T) {
mockReader := mocks.NewMockReader(mockCtrl)
notReceivedHash := test.notFoundTxHash

mockReader.EXPECT().TransactionByHash(notReceivedHash).Return(nil, db.ErrKeyNotFound)

handler := rpc.New(mockReader, nil, nil, "", log).WithFeeder(client)
_, err := handler.TransactionStatus(ctx, *notReceivedHash)
require.Equal(t, rpc.ErrTxnHashNotFound, err)
})
})
}
}

0 comments on commit 3156132

Please sign in to comment.