Skip to content

Commit

Permalink
let Hasura retry in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Jan 17, 2024
1 parent acbab25 commit 25a7a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dipdup/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async def _retry_request(
"""Retry a request in case of failure sleeping according to config"""
attempt = 1
retry_sleep = self._config.retry_sleep
retry_count = 0 if env.TEST else self._config.retry_count
retry_count = self._config.retry_count
last_attempt = retry_count + 1

Metrics.set_http_errors_in_row(self._url, 0)
Expand Down

0 comments on commit 25a7a5b

Please sign in to comment.