From 0f805ef81d4d4925ff8d64cdfe1d354ab0d4c951 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 7 Feb 2019 19:29:32 +0100 Subject: [PATCH] fix blackhole test for windows --- testing/scenarios/feature_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/testing/scenarios/feature_test.go b/testing/scenarios/feature_test.go index 3ff80d7d2..5b09eb806 100644 --- a/testing/scenarios/feature_test.go +++ b/testing/scenarios/feature_test.go @@ -2,7 +2,6 @@ package scenarios import ( "context" - "io" "io/ioutil" "net/http" "net/url" @@ -442,8 +441,8 @@ func TestBlackhole(t *testing.T) { common.Must(err) defer CloseAllServers(servers) - if err := testTCPConn(serverPort2, 1024, time.Second*5)(); err != io.EOF { - t.Error("unexpected error: ", err) + if err := testTCPConn(serverPort2, 1024, time.Second*5)(); err == nil { + t.Error("nil error") } }