(srv: Server)
| 74 | """Test interrupting a Server that is run explicitly inside asyncio""" |
| 75 | |
| 76 | async def interrupt_running(srv: Server): |
| 77 | while not srv.started: |
| 78 | await asyncio.sleep(0.01) |
| 79 | signal.raise_signal(exception_signal) |
| 80 | |
| 81 | server = Server(Config(app=dummy_app, loop="asyncio", port=unused_tcp_port)) |
| 82 | asyncio.create_task(interrupt_running(server)) |
no outgoing calls
no test coverage detected