fix shutdown mqtt server correctly

This commit is contained in:
Robert Resch 2022-05-18 01:39:36 +02:00
parent 24359aeda8
commit 6b2a6549f2
4 changed files with 22 additions and 30 deletions

View file

@ -354,13 +354,14 @@ async def test_nofileauth_mqttserver():
mqtt_server = MQTTServer(HOST, MQTT_PORT, password_file="tests/passwd-notfound")
await mqtt_server.start()
await mqtt_server.shutdown()
l.check_present(
(
"amqtt.broker.plugins.bumper",
"WARNING",
"Password file tests/passwd-notfound not found",
),
order_matters=False,
)
try:
l.check_present(
(
"amqtt.broker.plugins.bumper",
"WARNING",
"Password file tests/passwd-notfound not found",
),
order_matters=False,
)
finally:
await mqtt_server.shutdown()