Skip to content

Commit 8f9e244

Browse files
committed
testing: fix apiserver fixture panic if etcd is missing
Signed-off-by: Dr. Stefan Schimanski <[email protected]>
1 parent 9f4472c commit 8f9e244

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/internal/testing/controlplane/apiserver.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,9 @@ func (s *APIServer) Stop() error {
421421
return err
422422
}
423423
}
424+
if s.Authn == nil {
425+
return nil
426+
}
424427
return s.Authn.Stop()
425428
}
426429

0 commit comments

Comments
 (0)