1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 13:05:28 -05:00

fix lint warnings

This commit is contained in:
Darien Raymond
2017-11-07 14:40:51 +01:00
parent 251d6f6fcb
commit f5d76c8eb0
3 changed files with 20 additions and 10 deletions

View File

@@ -637,6 +637,8 @@ func TestVMessNone(t *testing.T) {
wg.Add(10)
for i := 0; i < 10; i++ {
go func() {
defer wg.Done()
conn, err := net.DialTCP("tcp", nil, &net.TCPAddr{
IP: []byte{127, 0, 0, 1},
Port: int(clientPort),
@@ -651,9 +653,9 @@ func TestVMessNone(t *testing.T) {
assert(nBytes, Equals, len(payload))
response := readFrom(conn, time.Second*20, 1024*1024)
assert(response, Equals, xor(payload))
assert(conn.Close(), IsNil)
wg.Done()
}()
}
wg.Wait()