diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2023-05-29 16:45:49 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2023-05-29 16:45:49 +0100 |
commit | 31ff94add9c4043a753683d9e8b68733c69aa1ac (patch) | |
tree | 1737c36a2641129a4de775c6058cc07b9cdca0f6 /test/test_node_websockets.py | |
parent | f55818059c01ff9e61bee8107ed1389fe272a787 (diff) | |
download | unit-31ff94add9c4043a753683d9e8b68733c69aa1ac.tar.gz unit-31ff94add9c4043a753683d9e8b68733c69aa1ac.tar.bz2 |
Tests: more fixtures.
Common methods from applications/proto.py converted to the fixtures.
sysctl check moved to the specific file where it is using.
Some options moved to the constructor to have early access.
Diffstat (limited to 'test/test_node_websockets.py')
-rw-r--r-- | test/test_node_websockets.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_node_websockets.py b/test/test_node_websockets.py index 8a32aa10..fc263d63 100644 --- a/test/test_node_websockets.py +++ b/test/test_node_websockets.py @@ -4,7 +4,6 @@ import time import pytest from unit.applications.lang.node import TestApplicationNode from unit.applications.websockets import TestApplicationWebsocket -from unit.option import option class TestNodeWebsockets(TestApplicationNode): @@ -1260,7 +1259,7 @@ class TestNodeWebsockets(TestApplicationNode): self.ws.frame_write(sock, self.ws.OP_CLOSE, payload) self.check_close(sock, 1002) - def test_node_websockets_9_1_1__9_6_6(self, is_unsafe): + def test_node_websockets_9_1_1__9_6_6(self, is_unsafe, system): if not is_unsafe: pytest.skip('unsafe, long run') @@ -1317,7 +1316,7 @@ class TestNodeWebsockets(TestApplicationNode): check_payload(op_binary, 8 * 2**20) # 9_2_5 check_payload(op_binary, 16 * 2**20) # 9_2_6 - if option.system != 'Darwin' and option.system != 'FreeBSD': + if system not in ['Darwin', 'FreeBSD']: check_message(op_text, 64) # 9_3_1 check_message(op_text, 256) # 9_3_2 check_message(op_text, 2**10) # 9_3_3 |