mirror of https://github.com/v2ray/v2ray-core
check error for dial in socks test
parent
471b655934
commit
22e867cb85
|
@ -38,6 +38,7 @@ func TestTCPConnection(t *testing.T) {
|
|||
IP: []byte{127, 0, 0, 1},
|
||||
Port: int(socksPort),
|
||||
})
|
||||
assert.Error(err).IsNil()
|
||||
|
||||
authRequest := socks5AuthMethodRequest(byte(0))
|
||||
nBytes, err := conn.Write(authRequest)
|
||||
|
|
Loading…
Reference in New Issue