diff --git a/controllers/integration_test.go b/controllers/integration_test.go index 2e038e4d..722fdc81 100644 --- a/controllers/integration_test.go +++ b/controllers/integration_test.go @@ -108,8 +108,8 @@ func SetupIntegrationTest(ctx2 context.Context) *testEnvironment { RunnerImage: "example/runner:test", DockerImage: "example/docker:test", Name: controllerName("runner"), - RegistrationRecheckInterval: time.Millisecond, - RegistrationRecheckJitter: time.Millisecond, + RegistrationRecheckInterval: time.Millisecond * 100, + RegistrationRecheckJitter: time.Millisecond * 10, UnregistrationTimeout: 1 * time.Second, UnregistrationRetryDelay: 1 * time.Second, } diff --git a/github/fake/fake.go b/github/fake/fake.go index 45e57985..1416f597 100644 --- a/github/fake/fake.go +++ b/github/fake/fake.go @@ -162,6 +162,10 @@ func NewServer(opts ...Option) *httptest.Server { }, // For RemoveRunner + "/repos/test/valid/actions/runners/0": &Handler{ + Status: http.StatusNoContent, + Body: "", + }, "/repos/test/valid/actions/runners/1": &Handler{ Status: http.StatusNoContent, Body: "",