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