api/chrono: does not return HTTP 500 with error "too busy" (#84817) #13

Merged
bdauvergne merged 1 commits from wip/84817-Ne-pas-retourner-l-erreur-too-bu into main 2023-12-18 12:02:58 +01:00
2 changed files with 0 additions and 2 deletions

View File

@ -378,7 +378,6 @@ class RendezVousDisponibleView(View):
'err': 1,
'error': 'busy',
},
status=500,
)
time.sleep(settings.ANTS_HUB_BUSY_BACKOFF * 2**i)
except (ValueError, ValidationError) as e:

View File

@ -1255,7 +1255,6 @@ def test_rendez_vous_disponibles_database_is_busy(django_app, db, monkeypatch, s
}
]
},
status=500,
)
assert call_count == 4