summaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
Diffstat (limited to 'model')
-rw-r--r--model/recipe_test.go5
-rw-r--r--model/recipes_test.go5
2 files changed, 2 insertions, 8 deletions
diff --git a/model/recipe_test.go b/model/recipe_test.go
index 37b43e0..1119d20 100644
--- a/model/recipe_test.go
+++ b/model/recipe_test.go
@@ -19,13 +19,10 @@ func TestRecipeCrud(t *testing.T) {
defer os.RemoveAll(storagePath)
storage := NewStorage(storagePath)
- if !storage.Exists() {
- storage.Create()
- }
ConnectDatabase(filepath.Join(storage.Path, "ceres.sqlite3"))
defer DisconnectDatabase()
- MigrateDatabase()
+ MigrateDatabase("dummy_version")
Transaction(func(tx *sql.Tx) error {
var original, readback, update, updated, deleted Recipe
diff --git a/model/recipes_test.go b/model/recipes_test.go
index d17ed92..159422f 100644
--- a/model/recipes_test.go
+++ b/model/recipes_test.go
@@ -17,13 +17,10 @@ func TestRecipesRead(t *testing.T) {
defer os.RemoveAll(storagePath)
storage := NewStorage(storagePath)
- if !storage.Exists() {
- storage.Create()
- }
ConnectDatabase(filepath.Join(storage.Path, "ceres.sqlite3"))
defer DisconnectDatabase()
- MigrateDatabase()
+ MigrateDatabase("dummy_version")
InjectTestRecipes()