diff options
Diffstat (limited to 'model/recipe_test.go')
-rw-r--r-- | model/recipe_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/model/recipe_test.go b/model/recipe_test.go index 74ccfa2..37b43e0 100644 --- a/model/recipe_test.go +++ b/model/recipe_test.go @@ -23,8 +23,9 @@ func TestRecipeCrud(t *testing.T) { storage.Create() } - InitDatabase(filepath.Join(storage.Path, "ceres.sqlite3")) - defer CloseDatabase() + ConnectDatabase(filepath.Join(storage.Path, "ceres.sqlite3")) + defer DisconnectDatabase() + MigrateDatabase() Transaction(func(tx *sql.Tx) error { var original, readback, update, updated, deleted Recipe |