Skip to content

Commit

Permalink
fix TestAcctUpdateslookupLatestCacheRetry
Browse files Browse the repository at this point in the history
  • Loading branch information
cce committed Mar 19, 2022
1 parent 8ac7c8b commit c382647
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ledger/acctupdates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2448,7 +2448,8 @@ func TestAcctUpdatesLookupLatestCacheRetry(t *testing.T) {

newBlock := func(au *accountUpdates, rnd basics.Round, base map[basics.Address]basics.AccountData, updates ledgercore.AccountDeltas) {
rewardLevel := uint64(0)
prevTotals, err := au.Totals(basics.Round(rnd - 1))
prevRound, prevTotals, err := au.LatestTotals()
require.Equal(t, rnd-1, prevRound)
require.NoError(t, err)

newTotals := ledgertesting.CalculateNewRoundAccountTotals(t, updates, rewardLevel, protoParams, base, prevTotals)
Expand Down

0 comments on commit c382647

Please sign in to comment.