test: Improve test coverage of retry/fail logic

This commit is contained in:
Matthias
2024-09-13 07:23:46 +02:00
parent 5112736385
commit c04cf6c5cb
2 changed files with 16 additions and 1 deletions

View File

@@ -662,7 +662,7 @@ class Exchange:
logger.debug("Performing scheduled market reload..")
try:
# on initial load, we retry 3 times to ensure we get the markets
retries = 3 if force else 1
retries = 3 if force else 0
# Reload async markets, then assign them to sync api
self._markets = retrier(self._load_async_markets, retries=retries)(reload=True)
self._api.set_markets(self._api_async.markets, self._api_async.currencies)