Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func testExpirationAccounts(t *testing.T, fixture *fixtures.RestClientFixture, f

blk, err := sClient.BookkeepingBlock(latestRound)
a.NoError(err)
a.Equal(blk.CurrentProtocol, protocolCheck)
a.Equal(string(blk.CurrentProtocol), protocolCheck)

sendMoneyTxn := fixture.SendMoneyAndWait(latestRound, amountToSendInitial, transactionFee, richAccount, sAccount, "")

Expand Down
10 changes: 1 addition & 9 deletions test/framework/fixtures/restClientFixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"unicode"

"github.com/algorand/go-algorand/data/basics"
"github.com/algorand/go-algorand/data/transactions"
"github.com/algorand/go-algorand/protocol"

"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -279,15 +278,8 @@ func (f *RestClientFixture) WaitForAllTxnsToConfirm(roundTimeout uint64, txidsAn
_, err := f.WaitForConfirmedTxn(roundTimeout, addr, txid)
if err != nil {
f.t.Logf("txn failed to confirm: ", addr, txid)
response, err := f.AlgodClient.GetRawPendingTransactions(0)
pendingTxns, err := f.LibGoalClient.GetParsedPendingTransactions(0)
if err == nil {
// Parse pending transaction response
var pendingTxns struct {
TopTransactions []transactions.SignedTxn
TotalTransactions uint64
}
err = protocol.DecodeReflect(response, &pendingTxns)
require.NoError(f.t, err)
pendingTxids := make([]string, 0, pendingTxns.TotalTransactions)
for _, txn := range pendingTxns.TopTransactions {
pendingTxids = append(pendingTxids, txn.Txn.ID().String())
Expand Down