Skip to content

Commit 73bba8f

Browse files
committed
db: reduce TestOpenCloseOpenClose configurations
This saves about 0.5s.
1 parent 8e019e4 commit 73bba8f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

open_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ func testOpenCloseOpenClose(t *testing.T, fs vfs.FS, root string) {
541541
useStoreRelativeWALPath := rand.IntN(2) == 0
542542
for _, startFromEmpty := range []bool{false, true} {
543543
for _, walDirname := range []string{"", "wal"} {
544-
for _, length := range []int{-1, 0, 1, 1000, 10000, 100000} {
544+
for _, length := range []int{-1, 0, 1, 1000, 100000} {
545545
dirname := "sharedDatabase" + walDirname
546546
if startFromEmpty {
547547
dirname = "startFromEmpty" + walDirname + strconv.Itoa(length)
@@ -566,7 +566,6 @@ func testOpenCloseOpenClose(t *testing.T, fs vfs.FS, root string) {
566566
if err != nil {
567567
t.Fatalf("sfe=%t, length=%d: Open #0: %v",
568568
startFromEmpty, length, err)
569-
continue
570569
}
571570
if length >= 0 {
572571
err = d0.Set([]byte("key"), []byte(xxx), nil)

0 commit comments

Comments
 (0)