Fix test DB connection - disable SSL

PostgreSQL in Docker requires SSL but tests weren't configured for it.
Adding ?sslmode=disable to the connection string fixes TLS errors.
This commit is contained in:
2026-02-22 00:10:17 +00:00
parent 9ca102153b
commit 82ff61cfdd
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"github.com/jackc/pgx/v5/pgxpool" "github.com/jackc/pgx/v5/pgxpool"
) )
const defaultTestDSN = "postgres://myuser:mypassword@localhost:5432/crussell_test" const defaultTestDSN = "postgres://myuser:mypassword@localhost:5432/crussell_test?sslmode=disable"
func Pool(t *testing.T) *pgxpool.Pool { func Pool(t *testing.T) *pgxpool.Pool {
t.Helper() t.Helper()