From 48de0180bf4632fd1a6b7bfa4e98f6b72bccbcd4 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sun, 16 Apr 2017 21:31:33 +0200 Subject: [PATCH] more time for testing --- testing/scenarios/tls_test.go | 2 +- testing/scenarios/vmess_test.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/testing/scenarios/tls_test.go b/testing/scenarios/tls_test.go index 2059fbcc..244979d3 100644 --- a/testing/scenarios/tls_test.go +++ b/testing/scenarios/tls_test.go @@ -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() diff --git a/testing/scenarios/vmess_test.go b/testing/scenarios/vmess_test.go index d407dfbe..b91a28cf 100644 --- a/testing/scenarios/vmess_test.go +++ b/testing/scenarios/vmess_test.go @@ -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()