2
0

TestConnectCustomLookup must test with TCP connection

Test (correctly) fails if run on a Unix domain socket.
This commit is contained in:
Jack Christensen
2019-11-18 07:28:47 -06:00
parent eb81d2926b
commit 32350bd1dc
+6 -1
View File
@@ -191,7 +191,12 @@ func TestConnectCustomDialer(t *testing.T) {
func TestConnectCustomLookup(t *testing.T) {
t.Parallel()
config, err := pgconn.ParseConfig(os.Getenv("PGX_TEST_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")
}
config, err := pgconn.ParseConfig(connString)
require.NoError(t, err)
looked := false