summaryrefslogtreecommitdiffhomepage
path: root/test/test_asgi_websockets.py (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-02-21Tests: switched to using f-strings.Andrei Zeliankou1-5/+5
Previously, it was necessary to support older versions of Python for compatibility. F-strings were released in Python 3.6. Python 3.5 was marked as unsupported by the end of 2020, so now it's possible to start using f-strings safely for better readability and performance.
2022-04-11Tests: style.Andrei Zeliankou1-47/+45
2022-01-31Tests: removed TestApplicationTLS.get_server_certificate().Andrei Zeliankou1-2/+4
distutils.version is replaced by packaging.version. Also minor style fixes.
2021-10-18Tests: style.Andrei Zeliankou1-1/+0
2021-09-20Fixed WebSocket connection hang issue after listener reconfigure.Max Romanov1-0/+17
Because the configuration values were read from the listener's configuration, an established WebSocket connection was unable to work properly (i. e. stuck) if the listener was removed. The correct source of configuration values is the request config joint. This is related to issue #581 on GitHub.
2021-04-05Tests: style.Andrei Zeliankou1-100/+108
2021-03-24Tests: fixed racing condition in websocket test 5_15.Max Romanov1-3/+11
Test case: "send a text message split into two fragments, then a continuation frame with FIN = false where there is nothing to continue, then an unfragmented text message, all sent in one chop". The test case investigates immediate connection closing since there is no message to continue. The mirror server may send a response for the first frame before the test сontinuation frame is received by the router. In this case, the test will receive a text frame before the close frame.
2021-01-28Router: fixing crash after WebSocket processing.Max Romanov1-0/+24
After WebSocket processing, the application port was released with incorrect reason ("got request"), unnecessarily decrementing the active request counter. The assertion was triggered only on application removal; a test was added for this case.
2021-01-13Tests: style.Andrei Zeliankou1-1/+0
2020-12-08Tests: skip_alert() converted to the fixture.Andrei Zeliankou1-2/+2
2020-12-06Tests: options moved to the separate class.Andrei Zeliankou1-1/+1
This change is necessary to separate the logic and prevent possible circular dependency.
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou1-2/+0
2020-10-07Tests: minor fixes.Andrei Zeliankou1-2/+4
2020-10-05Tests: added websocket test with long length.Andrei Zeliankou1-0/+12
2020-10-01Tests: added ASGI WebSocket.Max Romanov1-38/+51
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-132/+95
2020-04-14Tests: minor fixes and style.Andrei Zeliankou1-13/+13
2020-03-30Fixing application process infinite loop.Max Romanov1-1/+1
Main process exiting before app process init may have caused hanging.
2020-05-15Tests: style.Andrei Zeliankou1-1/+2
2020-04-24Tests: introduced module version specification in prerequisites.Andrei Zeliankou1-1/+1
2019-11-13Tests: fixed websocket tests.Andrei Zeliankou1-29/+14
2019-09-14Tests: refactored prerequisites model.Andrey Zelenkov1-1/+1
2019-09-02Tests: fixed recv_bytes() in websockets.py.Andrey Zelenkov1-2/+0
2019-09-02Tests: removed duplicate websocket tests.Andrey Zelenkov1-80/+0
2019-09-02Tests: prevented writing non-chopped frames to the closed socket.Andrey Zelenkov1-1/+0
2019-08-30Tests: websockets style fixes.Andrey Zelenkov1-239/+207
2019-08-22Tests: removed keepalive_interval for websocket tests.Andrey Zelenkov1-4/+10
Also increased read_timeout in frame_read() for slow hosts.
2019-08-22Tests: Node.js websockets tests tuned.Andrey Zelenkov1-3/+14
2019-08-22Tests: Node.js websockets.Andrey Zelenkov1-0/+1568