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:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user