Skip to content

Commit

Permalink
[fix]: flaky txm_enqueue_test (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 authored Oct 28, 2024
1 parent 8ed1d35 commit b210180
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/solana/txm/txm_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,14 @@ func TestTxm_Enqueue(t *testing.T) {
mc := mocks.NewReaderWriter(t)
mc.On("SendTx", mock.Anything, mock.Anything).Return(solana.Signature{}, nil).Maybe()
mc.On("SimulateTx", mock.Anything, mock.Anything, mock.Anything).Return(&rpc.SimulateTransactionResult{}, nil).Maybe()
mc.On("SignatureStatuses", mock.Anything, mock.AnythingOfType("[]solana.Signature")).Return(
func(_ context.Context, sigs []solana.Signature) (out []*rpc.SignatureStatusesResult) {
for i := 0; i < len(sigs); i++ {
out = append(out, &rpc.SignatureStatusesResult{})
}
return out
}, nil,
).Maybe()
ctx := tests.Context(t)

// mock solana keystore
Expand Down

0 comments on commit b210180

Please sign in to comment.