Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
calvwang9 committed Jul 24, 2023
1 parent ed4b434 commit 74c2d38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cosmos/client/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,11 @@ func mustRandomPort() int {

// awaitTxCommitted waits for a transaction to be committed on chain and returns the tx receipt
func awaitTxCommitted(t *testing.T, tc *Client, txHash string) (response *txtypes.GetTxResponse, success bool) {
for i := 0; i < 9; i++ { // max poll attempts to wait for tx commitment
for i := 0; i < 10; i++ { // max poll attempts to wait for tx commitment
txReceipt, err := tc.Tx(txHash)
if err == nil {
return txReceipt, true
}
t.Logf("tx not committed yet (attempt %d)", i+1)
time.Sleep(time.Second * 1) // TODO: configure dynamically based on block times
}
return nil, false
Expand Down

0 comments on commit 74c2d38

Please sign in to comment.