summaryrefslogtreecommitdiff
path: root/daemon/algod/api/server/v2/test/handlers_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/algod/api/server/v2/test/handlers_test.go')
-rw-r--r--daemon/algod/api/server/v2/test/handlers_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/algod/api/server/v2/test/handlers_test.go b/daemon/algod/api/server/v2/test/handlers_test.go
index dd89a23ef..e80ca258d 100644
--- a/daemon/algod/api/server/v2/test/handlers_test.go
+++ b/daemon/algod/api/server/v2/test/handlers_test.go
@@ -163,8 +163,9 @@ func TestGetBlockJsonEncoding(t *testing.T) {
backlogPool := execpool.MakeBacklog(nil, 0, execpool.LowPriority, nil)
defer backlogPool.Shutdown()
- totals, err := l.Totals(l.Latest())
+ totalsRound, totals, err := l.LatestTotals()
require.NoError(t, err)
+ require.Equal(t, l.Latest(), totalsRound)
totalRewardUnits := totals.RewardUnits()
poolBal, err := l.Lookup(l.Latest(), poolAddr)
require.NoError(t, err)