From ff0b0ac4b6a419d5f04be3af9fd6d6a95ce157d8 Mon Sep 17 00:00:00 2001 From: Callum Styan Date: Wed, 6 Dec 2017 19:05:58 -0800 Subject: [PATCH] use test utils in chunk_test --- chunks/chunk_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chunks/chunk_test.go b/chunks/chunk_test.go index b743ee81a..b03e52819 100644 --- a/chunks/chunk_test.go +++ b/chunks/chunk_test.go @@ -20,7 +20,7 @@ import ( "reflect" "testing" - "github.com/stretchr/testify/require" + "github.com/prometheus/tsdb/testutil" ) type pair struct { @@ -142,7 +142,7 @@ func benchmarkIterator(b *testing.B, newChunk func() Chunk) { res = append(res, v) } if it.Err() != io.EOF { - require.NoError(b, it.Err()) + testutil.Ok(b, it.Err()) } res = res[:0] }