diff --git a/setup.py b/setup.py index 17f2c67e8f..3f8cd7ce8c 100644 --- a/setup.py +++ b/setup.py @@ -59,7 +59,7 @@ def open_local(paths, mode='r', encoding='utf8'): uvloop, ujson, 'aiofiles>=0.3.0', - 'websockets>=3.2', + 'websockets>=4.0', ] if strtobool(os.environ.get("SANIC_NO_UJSON", "no")): print("Installing without uJSON") diff --git a/tests/test_worker.py b/tests/test_worker.py index e2b301ec05..af00982e73 100644 --- a/tests/test_worker.py +++ b/tests/test_worker.py @@ -131,5 +131,5 @@ def test_worker_close(worker): loop.run_until_complete(_close) assert worker.signal.stopped == True - conn.websocket.close_connection.assert_called_with(force=True) + conn.websocket.close_connection.assert_called_with(after_handshake=False) assert len(worker.servers) == 0