Skip to content

Commit

Permalink
Retry fetching posts as well
Browse files Browse the repository at this point in the history
  • Loading branch information
unode committed Dec 10, 2021
1 parent 3c60ba5 commit 474f436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration_tests/test_direct_message_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def bot_and_user_direct_channel(channel):
else:
raise ValueError("Couldn't find a direct channel between user and bot")

posts = driver.posts.get_posts_for_channel(channel["id"])

for _ in range(retries):
posts = driver.posts.get_posts_for_channel(channel["id"])

for post in posts["posts"].values():
if post["message"] == reply:
return
Expand Down

0 comments on commit 474f436

Please sign in to comment.