Skip to content

Commit 6d42046

Browse files
committed
Panic in APIServer.Stop when Authn == nil
1 parent 7ba3e55 commit 6d42046

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/internal/testing/controlplane/apiserver.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,10 @@ func (s *APIServer) Stop() error {
422422
return err
423423
}
424424
}
425-
return s.Authn.Stop()
425+
if s.Authn != nil {
426+
return s.Authn.Stop()
427+
}
428+
return nil
426429
}
427430

428431
// APIServerDefaultArgs exposes the default args for the APIServer so that you

0 commit comments

Comments
 (0)