From 33aff03122c0e2873efff4b38185f05a07d81688 Mon Sep 17 00:00:00 2001 From: wjrjerome Date: Mon, 8 Jul 2024 16:39:24 +1000 Subject: [PATCH] chore: fix broken stats test --- tests/stats_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/stats_test.go b/tests/stats_test.go index 468b9de..607c287 100644 --- a/tests/stats_test.go +++ b/tests/stats_test.go @@ -348,8 +348,8 @@ func FuzzStatsEndpointReturnHighestUnconfirmedTvlFromEvents(f *testing.F) { overallStats = fetchOverallStatsEndpoint(t, testServer) assert.Equal(t, &highestHeightEvent.UnconfirmedTvl, &overallStats.UnconfirmedTvl) - pendingTvl := int64(highestHeightEvent.UnconfirmedTvl) - int64(highestHeightEvent.ConfirmedTvl) - assert.Equal(t, pendingTvl, overallStats.PendingTvl) + pendingTvl := highestHeightEvent.UnconfirmedTvl - highestHeightEvent.ConfirmedTvl + assert.Equal(t, pendingTvl, overallStats.PendingTvl) }) }