ci: respect TEST_DB_HOST in db package tests
Backend Tests / test (push) Failing after 54s

This commit is contained in:
2026-06-25 00:50:21 +01:00
parent f3a41585d2
commit c3f0440713
+5 -1
View File
@@ -12,9 +12,13 @@ import (
) )
func resetEnv() { func resetEnv() {
host := "localhost"
if h := os.Getenv("TEST_DB_HOST"); h != "" {
host = h
}
os.Setenv("POSTGRES_USER", "myuser") os.Setenv("POSTGRES_USER", "myuser")
os.Setenv("POSTGRES_PASSWORD", "mypassword") os.Setenv("POSTGRES_PASSWORD", "mypassword")
os.Setenv("POSTGRES_HOST", "localhost") os.Setenv("POSTGRES_HOST", host)
os.Setenv("POSTGRES_DB", "crussell_test_db") os.Setenv("POSTGRES_DB", "crussell_test_db")
} }