mirror of
https://github.com/jackc/pgx.git
synced 2025-04-27 13:14:32 +00:00
Fix TestParseEnvLibpq when PGSSLMODE is set
This commit is contained in:
parent
7eae904eba
commit
d7973d87dd
@ -531,7 +531,7 @@ func TestParseDSN(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestParseEnvLibpq(t *testing.T) {
|
func TestParseEnvLibpq(t *testing.T) {
|
||||||
pgEnvvars := []string{"PGHOST", "PGPORT", "PGDATABASE", "PGUSER", "PGPASSWORD", "PGAPPNAME"}
|
pgEnvvars := []string{"PGHOST", "PGPORT", "PGDATABASE", "PGUSER", "PGPASSWORD", "PGAPPNAME", "PGSSLMODE"}
|
||||||
|
|
||||||
savedEnv := make(map[string]string)
|
savedEnv := make(map[string]string)
|
||||||
for _, n := range pgEnvvars {
|
for _, n := range pgEnvvars {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user