check error for dial in socks test

pull/93/head
v2ray 2016-02-22 17:13:45 +01:00
parent 471b655934
commit 22e867cb85
1 changed files with 1 additions and 0 deletions

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)