From: Matt Joiner Date: Tue, 12 Jun 2018 12:47:46 +0000 (+1000) Subject: Fix Count usage in benchmark X-Git-Tag: v1.0.0~127^2~32 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=5412eef6dadc167208755096b100b05846fe01c4;p=btrtrc.git Fix Count usage in benchmark --- 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) {