Commit 0e57ad96 authored by Luna's avatar Luna 😻

test_websocket: use _close on test_ready

parent 07c66d12
Pipeline #53780858 failed with stages
in 9 minutes and 25 seconds
......@@ -72,7 +72,7 @@ async def test_gw(test_cli):
assert isinstance(hello['d']['heartbeat_interval'], int)
assert isinstance(hello['d']['_trace'], list)
await conn.close(1000, 'test end')
await _close(conn)
@pytest.mark.asyncio
......@@ -94,9 +94,10 @@ async def test_ready(test_cli):
try:
await _json(conn)
assert True
await conn.close(1000, 'test end')
except (Exception, websockets.ConnectionClosed):
assert False
finally:
await _close(conn)
@pytest.mark.asyncio
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment