fix unit tests

This commit is contained in:
Yun Xu 2017-11-25 21:07:38 -08:00
parent f09c0393ba
commit 049f12096d
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ requirements = [
uvloop, uvloop,
ujson, ujson,
'aiofiles>=0.3.0', 'aiofiles>=0.3.0',
'websockets>=3.2', 'websockets>=4.0',
] ]
if strtobool(os.environ.get("SANIC_NO_UJSON", "no")): if strtobool(os.environ.get("SANIC_NO_UJSON", "no")):
print("Installing without uJSON") print("Installing without uJSON")

View File

@ -131,5 +131,5 @@ def test_worker_close(worker):
loop.run_until_complete(_close) loop.run_until_complete(_close)
assert worker.signal.stopped == True 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 assert len(worker.servers) == 0