From 5412eef6dadc167208755096b100b05846fe01c4 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 12 Jun 2018 22:47:46 +1000 Subject: [PATCH] Fix Count usage in benchmark --- connection_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection_test.go b/connection_test.go index 6334c52b..f741ac25 100644 --- a/connection_test.go +++ b/connection_test.go @@ -133,7 +133,7 @@ func BenchmarkConnectionMainReadLoop(b *testing.B) { } w.Close() require.NoError(b, <-mrlErr) - require.EqualValues(b, b.N, cn.stats.ChunksReadUseful) + require.EqualValues(b, b.N, cn.stats.ChunksReadUseful.Int64()) } func TestConnectionReceiveBadChunkIndex(t *testing.T) {