fix shutdown mqtt server correctly
This commit is contained in:
parent
24359aeda8
commit
6b2a6549f2
4 changed files with 22 additions and 30 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue