Update test to work on Windows

scan-io
Jack Christensen 2014-07-26 09:50:43 -05:00
parent 3761c6335e
commit b06d71f684
1 changed files with 2 additions and 2 deletions

View File

@ -189,8 +189,8 @@ func TestConnectWithConnectionRefused(t *testing.T) {
bad.Port = 1 bad.Port = 1
_, err := pgx.Connect(bad) _, err := pgx.Connect(bad)
if !strings.Contains(err.Error(), "connection refused") { if err == nil {
t.Fatal("Unable to establish connection: " + err.Error()) t.Fatal("Expected error establishing connection to bad port")
} }
} }