mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-06 04:46:13 +02:00
Parallel tsdb/wlog test
Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
This commit is contained in:
parent
294f36e802
commit
de93387f0b
@ -113,6 +113,7 @@ func TestDeleteCheckpoints(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestCheckpoint(t *testing.T) {
|
||||
t.Parallel()
|
||||
makeHistogram := func(i int) *histogram.Histogram {
|
||||
return &histogram.Histogram{
|
||||
Count: 5 + uint64(i*4),
|
||||
|
||||
@ -314,6 +314,7 @@ func allSegments(dir string) (io.ReadCloser, error) {
|
||||
}
|
||||
|
||||
func TestReaderFuzz(t *testing.T) {
|
||||
t.Parallel()
|
||||
for name, fn := range readerConstructors {
|
||||
for _, compress := range compression.Types() {
|
||||
t.Run(fmt.Sprintf("%s,compress=%s", name, compress), func(t *testing.T) {
|
||||
@ -353,6 +354,7 @@ func TestReaderFuzz(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestReaderFuzz_Live(t *testing.T) {
|
||||
t.Parallel()
|
||||
logger := promslog.NewNopLogger()
|
||||
for _, compress := range compression.Types() {
|
||||
t.Run(fmt.Sprintf("compress=%s", compress), func(t *testing.T) {
|
||||
|
||||
@ -443,6 +443,7 @@ func TestReadToEndWithCheckpoint(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestReadCheckpoint(t *testing.T) {
|
||||
t.Parallel()
|
||||
pageSize := 32 * 1024
|
||||
const seriesCount = 10
|
||||
const samplesCount = 250
|
||||
@ -677,6 +678,7 @@ func TestCheckpointSeriesReset(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestRun_StartupTime(t *testing.T) {
|
||||
t.Parallel()
|
||||
const pageSize = 32 * 1024
|
||||
const segments = 10
|
||||
const seriesCount = 20
|
||||
|
||||
@ -369,6 +369,7 @@ func TestSegmentMetric(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestCompression(t *testing.T) {
|
||||
t.Parallel()
|
||||
bootstrap := func(compressed compression.Type) string {
|
||||
const (
|
||||
segmentSize = pageSize
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user