summaryrefslogtreecommitdiffhomepage
path: root/test/unit
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-08-22 18:28:23 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-08-22 18:28:23 +0300
commit72b56388b765686cc947bd84e6bc569316ad8de2 (patch)
treeb86f7f3c3180197c06366978a07aa600f77f2837 /test/unit
parente291841b3379f8787a10ad4f91e4aeae2ae323a4 (diff)
downloadunit-72b56388b765686cc947bd84e6bc569316ad8de2.tar.gz
unit-72b56388b765686cc947bd84e6bc569316ad8de2.tar.bz2
Tests: Node.js websockets tests tuned.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/applications/websockets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/applications/websockets.py b/test/unit/applications/websockets.py
index 7b516239..d64b960c 100644
--- a/test/unit/applications/websockets.py
+++ b/test/unit/applications/websockets.py
@@ -57,7 +57,7 @@ class TestApplicationWebsocket(TestApplicationProto):
def serialize_close(self, code = 1000, reason = ''):
return struct.pack('!H', code) + reason.encode('utf-8')
- def frame_read(self, sock, read_timeout=1):
+ def frame_read(self, sock, read_timeout=5):
def recv_bytes(sock, bytes):
data = b''
while select.select([sock], [], [], read_timeout)[0]:
@@ -204,7 +204,7 @@ class TestApplicationWebsocket(TestApplicationProto):
op_code = self.OP_CONT
pos = end
- def message_read(self, sock, read_timeout=1):
+ def message_read(self, sock, read_timeout=5):
frame = self.frame_read(sock, read_timeout=read_timeout)
while(not frame['fin']):