Fix repo tests

This commit is contained in:
Jan Eitzinger 2023-05-05 06:02:17 +02:00
parent 0a43c4a146
commit 788d2cd61c
3 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ import (
func setup(t *testing.T) *JobRepository { func setup(t *testing.T) *JobRepository {
log.Init("info", true) log.Init("info", true)
dbfilepath := "../../test/test.db" dbfilepath := "testdata/test.db"
err := MigrateDB("sqlite3", dbfilepath) err := MigrateDB("sqlite3", dbfilepath)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)

BIN
internal/repository/testdata/test.db vendored Normal file

Binary file not shown.

View File

@ -34,7 +34,7 @@ func setupUserTest(t *testing.T) *UserCfgRepo {
}` }`
log.Init("info", true) log.Init("info", true)
dbfilepath := "../../test/test.db" dbfilepath := "testdata/test.db"
err := MigrateDB("sqlite3", dbfilepath) err := MigrateDB("sqlite3", dbfilepath)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)