Explorar el Código

check error for dial in socks test

v2ray hace 9 años
padre
commit
22e867cb85
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      testing/scenarios/socks_end_test.go

+ 1 - 0
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)