mirror of
https://github.com/actions/actions-runner-controller.git
synced 2026-03-30 11:13:06 +08:00
Add exponential backoff when generating runner reg tokens (#3724)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user