Skip to content

Commit f8e117d

Browse files
committed
db: fix missing close in TestOverlappingIngestedSSTs
We don't reset `closed` which can lead to the DB not being closed. Surprisingly, the finalizers did not detect this issue (except in crl-release-23.1).
1 parent d320970 commit f8e117d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ingest_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ func TestOverlappingIngestedSSTs(t *testing.T) {
481481
var err error
482482
d, err = Open(dir, opts)
483483
require.NoError(t, err)
484+
closed = false
484485
d.TestOnlyWaitForCleaning()
485486
}
486487
waitForFlush := func() {

0 commit comments

Comments
 (0)