Skip to content

Commit

Permalink
tests: Fix account tests for calling pending txn endpoint and box tes…
Browse files Browse the repository at this point in the history
…ts (#4751)
  • Loading branch information
algochoi authored Nov 3, 2022
1 parent 7fcfe26 commit ae443cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/goal/box.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var appBoxInfoCmd = &cobra.Command{
// Get box info
box, err := client.GetApplicationBoxByName(appIdx, boxName)
if err != nil {
if strings.Contains(err.Error(), `{"message":"box not found"}`) {
if strings.Contains(err.Error(), "box not found") {
reportErrorf("No box found for appid %d with name %s", appIdx, boxName)
}
reportErrorf(errorRequestFail, err)
Expand Down
10 changes: 5 additions & 5 deletions test/e2e-go/features/transactions/accountv2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,13 @@ int 1
_, err = client.WaitForRound(round + 1)
a.NoError(err)
// Ensure the txn committed
resp, err = client.GetPendingTransactions(2)
resp, err := client.GetParsedPendingTransactions(2)
a.NoError(err)
if resp.TotalTxns == 1 {
a.Equal(resp.TruncatedTxns.Transactions[0].TxID, txid)
if resp.TotalTransactions == 1 {
a.Equal(resp.TopTransactions[0].Txn.ID(), txid)
continue
}
a.Equal(uint64(0), resp.TotalTxns)
a.Equal(uint64(0), resp.TotalTransactions)
break
}

Expand Down Expand Up @@ -547,7 +547,7 @@ int 1
// Ensure the txn committed
resp, err := client.GetPendingTransactions(2)
a.NoError(err)
a.Equal(uint64(0), resp.TotalTxns)
a.Equal(uint64(0), resp.TotalTransactions)
txinfo, err := client.TransactionInformation(signedTxn.Txn.Sender.String(), txid)
a.NoError(err)
a.True(txinfo.ConfirmedRound != 0)
Expand Down

0 comments on commit ae443cd

Please sign in to comment.