Skip to content

Commit 24730ad

Browse files
committed
reduce TestFlushDelayStress runs in slow builds
Fixes #4843
1 parent a277627 commit 24730ad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

range_del_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717

1818
"github.com/cockroachdb/datadriven"
1919
"github.com/cockroachdb/pebble/internal/base"
20+
"github.com/cockroachdb/pebble/internal/buildtags"
2021
"github.com/cockroachdb/pebble/internal/manifest"
2122
"github.com/cockroachdb/pebble/internal/testkeys"
2223
"github.com/cockroachdb/pebble/objstorage/objstorageprovider"
@@ -207,7 +208,10 @@ func TestFlushDelayStress(t *testing.T) {
207208
Logger: testLogger{t: t},
208209
}
209210

210-
const runs = 100
211+
runs := 100
212+
if buildtags.SlowBuild {
213+
runs = 5
214+
}
211215
for run := 0; run < runs; run++ {
212216
d, err := Open("", opts)
213217
require.NoError(t, err)

0 commit comments

Comments
 (0)