parent
2d4c07b56d
commit
4c3f5109eb
3 changed files with 31 additions and 12 deletions
|
|
@ -308,6 +308,13 @@ func prepare(t testing.TB) {
|
|||
if err != nil {
|
||||
t.Fatalf("Failed to open %q: %v", cfg.DatabasePath, err)
|
||||
}
|
||||
|
||||
if !graph.IsPersistent(cfg.DatabaseType) {
|
||||
err = db.Load(ts, cfg, cfg.DatabasePath)
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to load %q: %v", cfg.DatabasePath, err)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue