Sfoglia il codice sorgente

check error for dial in socks test

v2ray 9 anni fa
parent
commit
22e867cb85
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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)