more time for testing

pull/432/merge
Darien Raymond 2017-04-16 21:31:33 +02:00
parent 6515cf12e5
commit 48de0180bf
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 6 additions and 6 deletions

View File

@ -371,7 +371,7 @@ func TestTLSOverWebSocket(t *testing.T) {
assert.Error(err).IsNil()
assert.Int(nBytes).Equals(len(payload))
response := readFrom(conn, time.Second*10, len(payload))
response := readFrom(conn, time.Second*20, len(payload))
assert.Bytes(response).Equals(xor([]byte(payload)))
assert.Error(conn.Close()).IsNil()

View File

@ -271,7 +271,7 @@ func TestVMessGCM(t *testing.T) {
assert.Error(err).IsNil()
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.Error(conn.Close()).IsNil()
wg.Done()
@ -394,7 +394,7 @@ func TestVMessChacha20(t *testing.T) {
assert.Error(err).IsNil()
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.Error(conn.Close()).IsNil()
wg.Done()
@ -517,7 +517,7 @@ func TestVMessNone(t *testing.T) {
assert.Error(err).IsNil()
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.Error(conn.Close()).IsNil()
wg.Done()
@ -769,7 +769,7 @@ func TestVMessIPv6(t *testing.T) {
assert.Error(err).IsNil()
assert.Int(nBytes).Equals(len(payload))
response := readFrom(conn, time.Second, 1024)
response := readFrom(conn, time.Second*20, 1024)
assert.Bytes(response).Equals(xor([]byte(payload)))
assert.Error(conn.Close()).IsNil()
@ -896,7 +896,7 @@ func TestVMessGCMMux(t *testing.T) {
assert.Error(err).IsNil()
assert.Int(nBytes).Equals(len(payload))
response := readFrom(conn, time.Second*10, 10240)
response := readFrom(conn, time.Second*20, 10240)
assert.Bytes(response).Equals(xor([]byte(payload)))
assert.Error(conn.Close()).IsNil()
wg.Done()