Skip to content

Commit

Permalink
fix: info queue test case added
Browse files Browse the repository at this point in the history
  • Loading branch information
benfdking committed Nov 19, 2024
1 parent f7c5d9d commit 529b8b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,10 @@ async def handler(_ctx: Context) -> None:
await asyncio.sleep(2)
self.assertGreater(state["counter"], 0)

async def test_info(self) -> None:
info = await self.queue.info()
assert info

async def test_burst(self) -> None:
with self.assertRaises(ValueError):
# dequeue_timeout must be set when burst is True
Expand Down

0 comments on commit 529b8b9

Please sign in to comment.