Skip to content

Commit 735e1d3

Browse files
authored
Skip TestCloseBadConn if PGHOST is a Unix-domain socket. (#943)
1 parent 667b909 commit 735e1d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

conn_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,9 @@ func TestCloseBadConn(t *testing.T) {
732732
if host == "" {
733733
host = "localhost"
734734
}
735+
if host[0] == '/' {
736+
t.Skip("cannot test bad connection close with a Unix-domain PGHOST")
737+
}
735738
port := os.Getenv("PGPORT")
736739
if port == "" {
737740
port = "5432"

0 commit comments

Comments
 (0)