Skip to content

Commit

Permalink
Add count test
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper committed Jul 4, 2024
1 parent e5c7108 commit fef8115
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_brq.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ async def test_count_unacked_jobs(async_redis_client):
producer = Producer(async_redis_client)
consumer = Consumer(async_redis_client, delay_job)
browser = Browser(async_redis_client)
assert await consumer.count_unacked_jobs("delay_job") == 0

await browser.status()
await producer.run_job("delay_job", ["hello"])
Expand Down Expand Up @@ -146,6 +147,7 @@ async def test_process_dead_jobs(async_redis_client, capfd, enable_dead_queue):
enable_dead_queue=enable_dead_queue,
)
browser = Browser(async_redis_client)
assert await producer.count_dead_messages("mock_consume_raise_exception") == 0

await browser.status()
await producer.run_job("mock_consume_raise_exception", ["hello"])
Expand Down

0 comments on commit fef8115

Please sign in to comment.