Progressive falloff for delay (#12369)

This commit is contained in:
Oliver
2026-07-13 14:52:40 +10:00
committed by GitHub
parent 0b3ba6c4eb
commit a19771dec9
+2 -2
View File
@@ -1102,7 +1102,7 @@ class CurrencyTests(TestCase):
update_successful = False update_successful = False
# Note: the update sometimes fails in CI, let's give it a few chances # Note: the update sometimes fails in CI, let's give it a few chances
for _ in range(10): for idx in range(10):
InvenTree.tasks.update_exchange_rates() InvenTree.tasks.update_exchange_rates()
rates = Rate.objects.all() rates = Rate.objects.all()
@@ -1114,7 +1114,7 @@ class CurrencyTests(TestCase):
else: # pragma: no cover else: # pragma: no cover
print('Exchange rate update failed - retrying') print('Exchange rate update failed - retrying')
print(f'Expected {currency_codes()}, got {[a.currency for a in rates]}') print(f'Expected {currency_codes()}, got {[a.currency for a in rates]}')
time.sleep(1) time.sleep(1 + idx)
self.assertTrue(update_successful) self.assertTrue(update_successful)