use test utils in chunk_test

This commit is contained in:
Callum Styan 2017-12-06 19:05:58 -08:00
parent 2ad78b3e51
commit ff0b0ac4b6

View file

@ -20,7 +20,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/stretchr/testify/require" "github.com/prometheus/tsdb/testutil"
) )
type pair struct { type pair struct {
@ -142,7 +142,7 @@ func benchmarkIterator(b *testing.B, newChunk func() Chunk) {
res = append(res, v) res = append(res, v)
} }
if it.Err() != io.EOF { if it.Err() != io.EOF {
require.NoError(b, it.Err()) testutil.Ok(b, it.Err())
} }
res = res[:0] res = res[:0]
} }