From c3ebb21757d7e90a904fe3fe34ddcdc440c762ea Mon Sep 17 00:00:00 2001 From: Richard Kettelerij Date: Thu, 20 Jun 2024 16:08:38 +0200 Subject: [PATCH] feat(pingdom): fix test --- internal/controller/ingressroute_controller_test.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/internal/controller/ingressroute_controller_test.go b/internal/controller/ingressroute_controller_test.go index 9bada34..ea45a52 100644 --- a/internal/controller/ingressroute_controller_test.go +++ b/internal/controller/ingressroute_controller_test.go @@ -54,17 +54,12 @@ func newTestUptimeProvider() *testUptimeProvider { } } -func (m *testUptimeProvider) HasCheck(check m.UptimeCheck) bool { - _, ok := m.checks[check.ID] - return ok -} - -func (m *testUptimeProvider) CreateOrUpdateCheck(check m.UptimeCheck) error { +func (m *testUptimeProvider) CreateOrUpdateCheck(_ context.Context, check m.UptimeCheck) error { m.checks[check.ID] = check return nil } -func (m *testUptimeProvider) DeleteCheck(check m.UptimeCheck) error { +func (m *testUptimeProvider) DeleteCheck(_ context.Context, check m.UptimeCheck) error { delete(m.checks, check.ID) return nil }