mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Close request server after testing it
This commit is contained in:
parent
07033471bd
commit
cc834784be
1 changed files with 2 additions and 0 deletions
|
@ -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"}
|
||||
|
|
Loading…
Add table
Reference in a new issue