test: fix tests after refactoring

This commit is contained in:
Denis Gukov 2022-11-19 03:31:40 +05:00
parent 73d60e901e
commit 94c69e67f2
2 changed files with 8 additions and 4 deletions

View File

@ -144,6 +144,12 @@ func addProject() *db.Project {
if err != nil {
panic(err)
}
err = store.UpdateProject(project)
if err != nil {
panic(err)
}
return &project
}
@ -261,9 +267,7 @@ var store db.Store
func dbConnect() {
store = factory.CreateStore()
if err := store.Connect(""); err != nil {
panic(err)
}
store.Connect("")
}
func stringInSlice(a string, list []string) (int, bool) {

2
.gitignore vendored
View File

@ -10,7 +10,7 @@ web/dist/**/*
/.dredd/config.json
/database.boltdb
/database.boltdb.lock
/database2.boltdb
/database_test.boltdb
.DS_Store
node_modules/