Fix Count usage in benchmark

This commit is contained in:
Matt Joiner 2018-06-12 22:47:46 +10:00
parent 5cb73d6a37
commit 5412eef6da
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ func BenchmarkConnectionMainReadLoop(b *testing.B) {
} }
w.Close() w.Close()
require.NoError(b, <-mrlErr) 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) { func TestConnectionReceiveBadChunkIndex(t *testing.T) {