Skip to content

Commit 3c70d62

Browse files
committed
db: reduce numOps in TestWALHardCrashRandomized
This reduces the average run time from ~2.5s to ~0.5s.
1 parent 9086c4b commit 3c70d62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

open_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1993,7 +1993,7 @@ func TestWALHardCrashRandomized(t *testing.T) {
19931993
maxValueSize: 1 << (prng.IntN(19)), // [1, 256 KiB]
19941994
unsyncedDataPercent: prng.IntN(101), // [0, 100]
19951995
seed: seed,
1996-
numOps: 250,
1996+
numOps: int(prng.ExpFloat64() * 100),
19971997
opCrashWeight: 1,
19981998
opBatchWeight: 20 << prng.IntN(3),
19991999
})

0 commit comments

Comments
 (0)