mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Merge pull request #109338 from kerthcet/cleanup/forget-to-close-when-error
test/integration/framework: call closeFn() in startAPIServerOrDie() on error
This commit is contained in:
commit
edac6fce2a
@ -233,6 +233,7 @@ func startAPIServerOrDie(controlPlaneConfig *controlplane.Config, incomingServer
|
||||
|
||||
clientset, err := clientset.NewForConfig(controlPlaneConfig.GenericConfig.LoopbackClientConfig)
|
||||
if err != nil {
|
||||
closeFn()
|
||||
klog.Fatal(err)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user