Browse Source

fix blackhole test for windows

pull/1546/head v4.15.0
Darien Raymond 6 years ago
parent
commit
0f805ef81d
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 5
      testing/scenarios/feature_test.go

5
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")
}
}

Loading…
Cancel
Save