Skip to content

Commit 5a9f94a

Browse files
authored
fix TestAcctUpdateslookupLatestCacheRetry (#3804)
## Summary The changes in #3770 didn't include the changes in #3769 and so tests don't compile on master currently — this updates another test that uses `Totals` to use `LatestTotals` instead. ## Test Plan Fixes tests.
1 parent 8ac7c8b commit 5a9f94a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ledger/acctupdates_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2448,7 +2448,8 @@ func TestAcctUpdatesLookupLatestCacheRetry(t *testing.T) {
24482448

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

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

0 commit comments

Comments
 (0)