1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00

more time

This commit is contained in:
Darien Raymond 2017-03-31 17:24:39 +02:00
parent e128f4de42
commit 00822812d4
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -126,7 +126,7 @@ func TestShadowsocksAES256TCP(t *testing.T) {
assert.Error(err).IsNil() assert.Error(err).IsNil()
assert.Int(nBytes).Equals(len(payload)) assert.Int(nBytes).Equals(len(payload))
response := readFrom(conn, time.Second*10, 10240*1024) response := readFrom(conn, time.Second*20, 10240*1024)
assert.Bytes(response).Equals(xor([]byte(payload))) assert.Bytes(response).Equals(xor([]byte(payload)))
assert.Error(conn.Close()).IsNil() assert.Error(conn.Close()).IsNil()
wg.Done() wg.Done()
@ -243,7 +243,7 @@ func TestShadowsocksChacha20TCP(t *testing.T) {
assert.Error(err).IsNil() assert.Error(err).IsNil()
assert.Int(nBytes).Equals(len(payload)) assert.Int(nBytes).Equals(len(payload))
response := readFrom(conn, time.Second*10, 10240*1024) response := readFrom(conn, time.Second*20, 10240*1024)
assert.Bytes(response).Equals(xor([]byte(payload))) assert.Bytes(response).Equals(xor([]byte(payload)))
assert.Error(conn.Close()).IsNil() assert.Error(conn.Close()).IsNil()
wg.Done() wg.Done()