From 9a207178f6f4e9ef0a443de01d3a2528dbbeedac Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 29 Oct 2022 13:16:05 -0500 Subject: [PATCH] Fix TestConnCheckConn always being skipped --- pgconn/pgconn_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgconn/pgconn_test.go b/pgconn/pgconn_test.go index 79a8d9a2..7682729c 100644 --- a/pgconn/pgconn_test.go +++ b/pgconn/pgconn_test.go @@ -2158,7 +2158,7 @@ func TestConnCheckConn(t *testing.T) { // Intentionally using TCP connection for more predictable close behavior. (Not sure if Unix domain sockets would behave subtlely different.) - connString := os.Getenv(os.Getenv("PGX_TEST_TCP_CONN_STRING")) + connString := os.Getenv("PGX_TEST_TCP_CONN_STRING") if connString == "" { t.Skipf("Skipping due to missing environment variable %v", "PGX_TEST_TCP_CONN_STRING") }