fix tests
This commit is contained in:
parent
91ebc285b0
commit
913c15ad02
1 changed files with 4 additions and 1 deletions
|
|
@ -53,9 +53,12 @@ async def test_start_stop_debug():
|
||||||
asyncio.create_task(b.start())
|
asyncio.create_task(b.start())
|
||||||
|
|
||||||
await asyncio.sleep(0.1)
|
await asyncio.sleep(0.1)
|
||||||
asyncio.create_task(b.shutdown())
|
while b.mqtt_server.broker.transitions.state == "starting":
|
||||||
|
await asyncio.sleep(0.1)
|
||||||
l.check_present(("bumper", "INFO", "Starting Bumper"))
|
l.check_present(("bumper", "INFO", "Starting Bumper"))
|
||||||
l.clear()
|
l.clear()
|
||||||
|
|
||||||
|
asyncio.create_task(b.shutdown())
|
||||||
await asyncio.sleep(0.1)
|
await asyncio.sleep(0.1)
|
||||||
l.check_present(
|
l.check_present(
|
||||||
("bumper", "INFO", "Shutting down"), ("bumper", "INFO", "Shutdown complete")
|
("bumper", "INFO", "Shutting down"), ("bumper", "INFO", "Shutdown complete")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue