fix-#1856: adjust websockets version to setup.py and make nightly (py39) tests pass (#1857)
* fix-#1856: adjust websockets version to setup.py and make nightly (py39) tests pass * fix-#1856: set min websockets version to 8.1 * fix-#1856: suppress timeout for CI to pass * fix-#1856: timeout -> close_timeout due to deprecation warning Co-authored-by: Adam Hopkins <admhpkns@gmail.com> Co-authored-by: 7 <yunxu1992@gmail.com>
This commit is contained in:
parent
bedf68a9b2
commit
1b324ae981
|
@ -113,7 +113,7 @@ class WebSocketProtocol(HttpProtocol):
|
|||
|
||||
# hook up the websocket protocol
|
||||
self.websocket = WebSocketCommonProtocol(
|
||||
timeout=self.websocket_timeout,
|
||||
close_timeout=self.websocket_timeout,
|
||||
max_size=self.websocket_max_size,
|
||||
max_queue=self.websocket_max_queue,
|
||||
read_limit=self.websocket_read_limit,
|
||||
|
|
2
setup.py
2
setup.py
|
@ -79,7 +79,7 @@ requirements = [
|
|||
uvloop,
|
||||
ujson,
|
||||
"aiofiles>=0.3.0",
|
||||
"websockets>=7.0,<9.0",
|
||||
"websockets>=8.1,<9.0",
|
||||
"multidict>=4.0,<5.0",
|
||||
"httpx==0.11.1",
|
||||
]
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
import os
|
||||
import secrets
|
||||
import sys
|
||||
from contextlib import suppress
|
||||
|
||||
from subprocess import PIPE, Popen
|
||||
from subprocess import PIPE, Popen, TimeoutExpired
|
||||
from tempfile import TemporaryDirectory
|
||||
from textwrap import dedent
|
||||
from threading import Timer
|
||||
|
@ -85,4 +86,5 @@ async def test_reloader_live(runargs, mode):
|
|||
finally:
|
||||
timeout.cancel()
|
||||
terminate(proc)
|
||||
proc.wait(timeout=3)
|
||||
with suppress(TimeoutExpired):
|
||||
proc.wait(timeout=3)
|
||||
|
|
Loading…
Reference in New Issue
Block a user