Skip to content

Commit 06a0bf3

Browse files
authored
Merge pull request #781 from Arvinderpal/fix-panic-api-server-stop
🐛 (:bug:, patch) Fix panic in call to processState.Stop()
2 parents 7316b14 + 9092cca commit 06a0bf3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/internal/testing/integration/apiserver.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ func (s *APIServer) setProcessState() error {
125125
// Stop stops this process gracefully, waits for its termination, and cleans up
126126
// the CertDir if necessary.
127127
func (s *APIServer) Stop() error {
128-
return s.processState.Stop()
128+
if s.processState != nil {
129+
return s.processState.Stop()
130+
}
131+
return nil
129132
}
130133

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

0 commit comments

Comments
 (0)