소스 검색

fix blackhole test for windows

Darien Raymond 7 년 전
부모
커밋
0f805ef81d
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      testing/scenarios/feature_test.go

+ 2 - 3
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")
 	}
 }