Skip to content

Commit

Permalink
Tests: Fix txid-string comparison (#4792)
Browse files Browse the repository at this point in the history
  • Loading branch information
algochoi authored Nov 16, 2022
1 parent bffd703 commit 6b85209
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test/e2e-go/features/transactions/accountv2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ int 1
resp, err := client.GetParsedPendingTransactions(2)
a.NoError(err)
if resp.TotalTransactions == 1 {
a.Equal(resp.TopTransactions[0].Txn.ID(), txid)
a.Equal(resp.TopTransactions[0].Txn.ID().String(), txid)
continue
}
a.Equal(uint64(0), resp.TotalTransactions)
Expand Down
14 changes: 5 additions & 9 deletions test/e2e-go/upgrades/application_support_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,18 +448,14 @@ int 1
a.NoError(err)
signedTxn, err = client.SignTransactionWithWallet(wh, nil, tx)
a.NoError(err)
_, err = client.BroadcastTransaction(signedTxn)
txid, err := client.BroadcastTransaction(signedTxn)
a.NoError(err)

curStatus, err = client.Status()
a.NoError(err)

round = curStatus.LastRound

client.WaitForRound(round + 2)
pendingTx, err = client.GetPendingTransactions(1)
// Try polling 10 rounds to ensure txn is committed.
round, err = client.CurrentRound()
a.NoError(err)
a.Equal(uint64(0), pendingTx.TotalTransactions)
isCommitted := fixture.WaitForTxnConfirmation(round+10, creator, txid)
a.True(isCommitted)

// check creator's balance record for the app entry and the state changes
ad, err = client.AccountData(creator)
Expand Down

0 comments on commit 6b85209

Please sign in to comment.