async def test(conf: Dict[str, PluginConf],
- messages: List[Dict[str, Any]]) -> None:
+ messages: List[Dict[str, Any]],
+ wait: float = 0.0) -> None:
"""Test configuration of ControlPi system.
Setup message bus, process given configuration, run message bus and
await message_bus.send(Message('test()', message))
# Give immediate reactions to messages opportunity to happen:
await asyncio.sleep(0)
+ await asyncio.sleep(wait)
await message_bus._queue.join()