Skip to content

Commit 87bc34a

Browse files
committed
retry
1 parent 6bb9729 commit 87bc34a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_infra.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def test_quiz_workflow(api_endpoint):
164164
assert response.status_code == 200
165165
leaderboard = response.json()
166166
print(leaderboard)
167-
assert len(leaderboard) == 3
167+
# assert len(leaderboard) == 3
168168
else:
169169
# If the response is empty, retry it for 3 times with a 2 second delay.
170170
# TODO: This is a hack to get around the fact that the leaderboard is not available immediately.
@@ -175,9 +175,8 @@ def test_quiz_workflow(api_endpoint):
175175
assert response.status_code == 200
176176
leaderboard = response.json()
177177
print(leaderboard)
178-
else:
179-
assert False, "Leaderboard is empty"
180178

179+
assert len(leaderboard) == 3
181180
print(leaderboard)
182181
expected_scores = {
183182
"user1": None,

0 commit comments

Comments
 (0)