()
| 59 | bot.close_session = noop # stub: no real aiohttp session in tests |
| 60 | |
| 61 | async def driver(): |
| 62 | await bot._process_polling(non_stop=True, interval=0, timeout=0) |
| 63 | # Allow the fire-and-forget task to finish plus one yield for the |
| 64 | # add_done_callback discard to run. A timeout guards against the |
| 65 | # stub ever being rewired such that the processing task never runs. |
| 66 | await asyncio.wait_for(process_completed.wait(), timeout=1) |
| 67 | await asyncio.sleep(0) |
| 68 | |
| 69 | asyncio.run(driver()) |
| 70 |
no test coverage detected
searching dependent graphs…