Skip to content

Commit

Permalink
metrics: fix TestGetValue (#4879)
Browse files Browse the repository at this point in the history
  • Loading branch information
algorandskiy authored Dec 8, 2022
1 parent c0e044b commit 93c01b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/metrics/counter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ func TestGetValue(t *testing.T) {
partitiontest.PartitionTest(t)

c := MakeCounter(MetricName{Name: "testname", Description: "testhelp"})
c.Deregister(nil)

require.Equal(t, uint64(0), c.GetUint64Value())
c.Inc(nil)
require.Equal(t, uint64(1), c.GetUint64Value())
Expand Down

0 comments on commit 93c01b5

Please sign in to comment.