提交 ff0b0ac4 编写于 作者: C Callum Styan

use test utils in chunk_test

上级 2ad78b3e
......@@ -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]
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册