Add exponential backoff when generating runner reg tokens (#3724)

This commit is contained in:
Bassem Dghaidi
2024-09-04 12:23:31 +02:00
committed by GitHub
parent 1be410ba80
commit 90b68fec1a
2 changed files with 19 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ func TestNewActionsServiceRequest(t *testing.T) {
}
failures := 0
unauthorizedHandler := func(w http.ResponseWriter, r *http.Request) {
if failures < 2 {
if failures < 5 {
failures++
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusUnauthorized)