diff --git a/testing/scenarios/tls_test.go b/testing/scenarios/tls_test.go index 2059fbcc8..244979d33 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 d407dfbee..b91a28cfd 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()