Skip to content

Commit

Permalink
Merge branch 'main' into julien/deprecate-broadcast-mode-block
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Aug 23, 2022
2 parents 9c09965 + 8372f54 commit 837b246
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/e2e/tx/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,11 @@ func (s *IntegrationTestSuite) TestQueryBySig() {
txb := s.mkTxBuilder()
txbz, err := s.cfg.TxConfig.TxEncoder()(txb.GetTx())
s.Require().NoError(err)
_, err = s.queryClient.BroadcastTx(context.Background(), &tx.BroadcastTxRequest{TxBytes: txbz, Mode: tx.BroadcastMode_BROADCAST_MODE_SYNC})
resp, err := s.queryClient.BroadcastTx(context.Background(), &tx.BroadcastTxRequest{TxBytes: txbz, Mode: tx.BroadcastMode_BROADCAST_MODE_SYNC})
s.Require().NoError(err)
s.Require().NotEmpty(resp.TxResponse.TxHash)

s.Require().NoError(s.network.WaitForNextBlock())

// wait for tx to be included
s.network.WaitForNextBlock()
Expand Down

0 comments on commit 837b246

Please sign in to comment.