From 5f2b5327f702ebc022c69969cc2bf73c64ee69ef Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Thu, 3 Mar 2022 09:30:11 +0000 Subject: [PATCH] integration: Reduce error logs to ease debugging --- controllers/integration_test.go | 4 ++-- github/fake/fake.go | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) 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: "",