From 22e867cb855011c5080dc4d8aebda0a1001fd98a Mon Sep 17 00:00:00 2001 From: v2ray Date: Mon, 22 Feb 2016 17:13:45 +0100 Subject: [PATCH] check error for dial in socks test --- testing/scenarios/socks_end_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/scenarios/socks_end_test.go b/testing/scenarios/socks_end_test.go index d82f43c0..56f33ea3 100644 --- a/testing/scenarios/socks_end_test.go +++ b/testing/scenarios/socks_end_test.go @@ -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)