mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 21:24:05 -08:00
use test utils in chunk_test
This commit is contained in:
parent
2ad78b3e51
commit
ff0b0ac4b6
|
@ -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]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue