diff --git a/pkg/internal/testing/controlplane/apiserver.go b/pkg/internal/testing/controlplane/apiserver.go index d6a71dc951..999cb90be7 100644 --- a/pkg/internal/testing/controlplane/apiserver.go +++ b/pkg/internal/testing/controlplane/apiserver.go @@ -422,7 +422,10 @@ func (s *APIServer) Stop() error { return err } } - return s.Authn.Stop() + if s.Authn != nil { + return s.Authn.Stop() + } + return nil } // APIServerDefaultArgs exposes the default args for the APIServer so that you