From 2a400f4ee4e0e77dfa2526145718891aa7bf04ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Z=C3=BCrcher?= Date: Wed, 12 Nov 2025 14:23:07 +0100 Subject: [PATCH] add domain env to test --- db_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db_test.go b/db_test.go index 1d780d3..ec17f1d 100644 --- a/db_test.go +++ b/db_test.go @@ -19,6 +19,7 @@ func TestDatabase(t *testing.T) { // set enviroment variables os.Setenv("ACCESS_SECRET", "12345678910111213141516171819202") os.Setenv("REFRESH_SECRET", "9998979695949392919089888786858") + os.Setenv("DOMAIN", "localhost") dbName := "user.db" if _, err := os.Stat(dbName); err == nil { @@ -160,6 +161,7 @@ func TestDatabase(t *testing.T) { func TestLoginAndAuthorization(t *testing.T) { os.Setenv("ACCESS_SECRET", "12345678910111213141516171819202") os.Setenv("REFRESH_SECRET", "9998979695949392919089888786858") + os.Setenv("DOMAIN", "localhost") gin.SetMode(gin.TestMode)