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