lib/db: Add closeWaitGroup to allow async operation (#6317)

This commit is contained in:
Simon Frei
2020-02-11 14:31:43 +01:00
committed by GitHub
parent b61da487e4
commit 29736b1e33
8 changed files with 102 additions and 13 deletions
+2
View File
@@ -106,6 +106,7 @@ func discardFromBlockMap(db *Lowlevel, folder []byte, fs []protocol.FileInfo) er
func TestBlockMapAddUpdateWipe(t *testing.T) {
db, f := setup()
defer db.Close()
if !dbEmpty(db) {
t.Fatal("db not empty")
@@ -193,6 +194,7 @@ func TestBlockMapAddUpdateWipe(t *testing.T) {
func TestBlockFinderLookup(t *testing.T) {
db, f := setup()
defer db.Close()
folder1 := []byte("folder1")
folder2 := []byte("folder2")