fix unit tests
This commit is contained in:
parent
f09c0393ba
commit
049f12096d
2
setup.py
2
setup.py
|
@ -59,7 +59,7 @@ requirements = [
|
|||
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")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user