Close request server after testing it

This commit is contained in:
Daniel A. Wozniak 2023-08-23 15:41:08 +01:00 committed by Pedro Algarvio
parent 07033471bd
commit cc834784be
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -25,5 +25,7 @@ async def test_req_server_garbage_request(io_loop):
ret = await request_server.handle_message(None, badbyts)
except Exception as exc: # pylint: disable=broad-except
pytest.fail(f"Exception was raised {exc}")
finally:
request_server.close()
assert ret == {"msg": "bad load"}