extend test to check the validity of relative links

This commit is contained in:
vyzo 2021-07-28 11:56:35 +03:00 committed by Jennifer Wang
parent 7a3193a75b
commit a24b2436b0

View File

@ -245,6 +245,21 @@ func testMove(t *testing.T, optsF func(string) Options) {
checkBlocks()
checkPath()
// reopen the db to make sure our relative link works:
err = db.Close()
if err != nil {
t.Fatal(err)
}
db, err = Open(optsF(dbPath))
if err != nil {
t.Fatal(err)
}
// db.Close() is already deferred
checkBlocks()
}
func TestMoveNoPrefix(t *testing.T) {