api/chrono: does not return HTTP 500 with error "too busy" (#84817)
gitea/ants-hub/pipeline/head This commit looks good Details

This commit is contained in:
Benjamin Dauvergne 2023-12-17 10:06:28 +01:00
parent 62ea9bc79a
commit 8fafb09a47
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