mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
test: fix tests after refactoring
This commit is contained in:
parent
73d60e901e
commit
94c69e67f2
@ -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
2
.gitignore
vendored
@ -10,7 +10,7 @@ web/dist/**/*
|
||||
/.dredd/config.json
|
||||
/database.boltdb
|
||||
/database.boltdb.lock
|
||||
/database2.boltdb
|
||||
/database_test.boltdb
|
||||
.DS_Store
|
||||
node_modules/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user