From d797f685f5c3ec0e65914cad41ab4ac5dc0c6fad Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Mon, 17 Feb 2020 04:47:11 -0500
Subject: [PATCH] Skip TestCloseBadConn if PGHOST is a Unix-domain socket.
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
conn_test.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/conn_test.go b/conn_test.go
index 0d25c95..4ba86d4 100644
--- a/conn_test.go
+++ b/conn_test.go
@@ -728,6 +728,9 @@ func TestCloseBadConn(t *testing.T) {
if host == "" {
host = "localhost"
}
+ if host[0] == '/' {
+ t.Skip("cannot test bad connection close with a Unix-domain PGHOST")
+ }
port := os.Getenv("PGPORT")
if port == "" {
port = "5432"
--
2.21.1