diff --git a/test/utils.go b/test/utils.go index 78b422c..e5b8481 100644 --- a/test/utils.go +++ b/test/utils.go @@ -31,6 +31,7 @@ func StartServerIfNotAlready() { return } _ = os.Remove("test.db") + _ = os.Setenv("DB_FILE", "test.db") go func(url *string) { router := server.InitServer() *url = "http://localhost:" + os.Getenv("PORT") + "/v1"