Skip to content

Commit

Permalink
test_: adjust asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarbu15 committed Feb 7, 2025
1 parent dfce889 commit 084c67e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ def test_light_client_rate_limiting(self):
)
elapsed_time = time() - start_time

assert elapsed_time <= 45, f"Message sending took too long: {elapsed_time:.2f} seconds"
assert elapsed_time >= 30, f"Message sending was too fast: {elapsed_time:.2f} seconds. Rate limiting is not applied"
assert elapsed_time <= 60, f"Message sending took too long: {elapsed_time:.2f} seconds. Rate limiting is too high"

0 comments on commit 084c67e

Please sign in to comment.