Skip to content

Commit

Permalink
Fixed flaky integration test: test_publish_requeue_consume() (#2048)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus authored Jul 1, 2024
1 parent 5218099 commit 35a5f0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/integration/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ def callback(body, message):
serializer='pickle',
priority=prio_max
)
# Sleep to make sure that queue sorted based on priority
sleep(0.5)

with consumer:
conn.drain_events(timeout=1)
Expand Down

0 comments on commit 35a5f0a

Please sign in to comment.