diff --git a/tests/unit/test_tui_reporter.py b/tests/unit/test_tui_reporter.py index ded0c901e5..985f369fd9 100644 --- a/tests/unit/test_tui_reporter.py +++ b/tests/unit/test_tui_reporter.py @@ -462,8 +462,9 @@ def on_snapshot_fetched(self, message): # WHEN async def run_test(): - async with app.run_test(): + async with app.run_test() as pilot: await all_messages_received.wait() + await pilot.pause() async_run(run_test())