mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-17 06:46:33 -05:00
fix blackhole test for windows
This commit is contained in:
parent
b234cfb4c4
commit
0f805ef81d
@ -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 {
|
if err := testTCPConn(serverPort2, 1024, time.Second*5)(); err == nil {
|
||||||
t.Error("unexpected error: ", err)
|
t.Error("nil error")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user