Browse Source

fix blackhole test for windows

Darien Raymond 6 years ago
parent
commit
0f805ef81d
1 changed files with 2 additions and 3 deletions
  1. 2 3
      testing/scenarios/feature_test.go

+ 2 - 3
testing/scenarios/feature_test.go

@@ -2,7 +2,6 @@ package scenarios
 
 
 import (
 import (
 	"context"
 	"context"
-	"io"
 	"io/ioutil"
 	"io/ioutil"
 	"net/http"
 	"net/http"
 	"net/url"
 	"net/url"
@@ -442,8 +441,8 @@ func TestBlackhole(t *testing.T) {
 	common.Must(err)
 	common.Must(err)
 	defer CloseAllServers(servers)
 	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")
 	}
 	}
 }
 }