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 Jan 24, 2022
1 parent 7ba3e55 commit 6d42046
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 @@ -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
Expand Down

0 comments on commit 6d42046

Please sign in to comment.