1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

check error for dial in socks test

This commit is contained in:
v2ray 2016-02-22 17:13:45 +01:00
parent 471b655934
commit 22e867cb85

View File

@ -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)