From da67a03f435ffa0d2b6d1ca8302d941281f9bbbf Mon Sep 17 00:00:00 2001 From: Matt Ketmo Date: Thu, 11 Jul 2024 13:35:57 +0200 Subject: [PATCH] Update pkg/watcher/block_test.go --- pkg/watcher/block_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/watcher/block_test.go b/pkg/watcher/block_test.go index 59556b2..f805035 100644 --- a/pkg/watcher/block_test.go +++ b/pkg/watcher/block_test.go @@ -137,7 +137,7 @@ func TestBlockWatcher(t *testing.T) { assert.Equal(t, 1, testutil.CollectAndCount(blockWatcher.metrics.ValidatedBlocks)) assert.Equal(t, 1, testutil.CollectAndCount(blockWatcher.metrics.MissedBlocks)) assert.Equal(t, 1, testutil.CollectAndCount(blockWatcher.metrics.SoloMissedBlocks)) - assert.Equal(t, 0, testutil.CollectAndCount(blockWatcher.metrics.consecutive)) + assert.Equal(t, 0, testutil.CollectAndCount(blockWatcher.metrics.ConsecutiveMissedBlocks)) assert.Equal(t, float64(1), testutil.ToFloat64(blockWatcher.metrics.ProposedBlocks.WithLabelValues(chainID, kilnAddress, kilnName))) assert.Equal(t, float64(3), testutil.ToFloat64(blockWatcher.metrics.ValidatedBlocks.WithLabelValues(chainID, kilnAddress, kilnName))) assert.Equal(t, float64(1), testutil.ToFloat64(blockWatcher.metrics.MissedBlocks.WithLabelValues(chainID, kilnAddress, kilnName)))