diff --git a/internal/controller/ingress_controller_test.go b/internal/controller/ingress_controller_test.go index bf820e6..7ae9201 100644 --- a/internal/controller/ingress_controller_test.go +++ b/internal/controller/ingress_controller_test.go @@ -42,8 +42,7 @@ func TestSetupWithManager(t *testing.T) { RulesStore: mockRulesStore, } - mgr := newFakeManager() - err := reconciler.SetupWithManager(mgr) + err := reconciler.SetupWithManager(newFakeManager()) assert.NoError(t, err) }