Skip to content

Commit

Permalink
raising exception from unreachable code in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rose Yemelyanova committed Jul 25, 2023
1 parent b6d2e71 commit acb6db2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/adapters/test_httpadapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ async def adapter_task(
if exception is not None:
raise exception

raise Exception("adapter.run_forever should not finish without an exception")

yield adapter_running
await adapter.stop()
await asyncio.wait_for(adapter_running, timeout=10.0)
Expand Down

0 comments on commit acb6db2

Please sign in to comment.