use CollectGarbage in blockstore move test, as it is the real interface

This commit is contained in:
vyzo 2021-07-24 08:43:15 +03:00
parent b1f60e85e9
commit 21e7c188da

View File

@ -154,7 +154,9 @@ func testMove(t *testing.T, optsF func(string) Options) {
return nil
})
g.Go(func() error {
return db.moveTo("")
return db.CollectGarbage(map[interface{}]interface{}{
blockstore.BlockstoreMovingGC: true,
})
})
err = g.Wait()