Skip to content

Commit

Permalink
Panic in APIServer.Stop when Authn == nil
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Jul 26, 2022
1 parent f035121 commit 267e056
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/internal/testing/controlplane/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,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
Expand Down

0 comments on commit 267e056

Please sign in to comment.