diff --git a/internal/repository/job_test.go b/internal/repository/job_test.go index 34a2df2..d74dad5 100644 --- a/internal/repository/job_test.go +++ b/internal/repository/job_test.go @@ -14,7 +14,7 @@ import ( func setup(t *testing.T) *JobRepository { log.Init("info", true) - dbfilepath := "../../test/test.db" + dbfilepath := "testdata/test.db" err := MigrateDB("sqlite3", dbfilepath) if err != nil { t.Fatal(err) diff --git a/internal/repository/testdata/test.db b/internal/repository/testdata/test.db new file mode 100644 index 0000000..e2dd7de Binary files /dev/null and b/internal/repository/testdata/test.db differ diff --git a/internal/repository/user_test.go b/internal/repository/user_test.go index 7c29d59..f5987ac 100644 --- a/internal/repository/user_test.go +++ b/internal/repository/user_test.go @@ -34,7 +34,7 @@ func setupUserTest(t *testing.T) *UserCfgRepo { }` log.Init("info", true) - dbfilepath := "../../test/test.db" + dbfilepath := "testdata/test.db" err := MigrateDB("sqlite3", dbfilepath) if err != nil { t.Fatal(err)