From fbf07e989cea125f4d16fe1e8b70ce3ee2868182 Mon Sep 17 00:00:00 2001 From: kerthcet Date: Wed, 6 Apr 2022 22:21:23 +0800 Subject: [PATCH] fix: forget to call close() in error Signed-off-by: kerthcet --- test/integration/framework/controlplane_utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/integration/framework/controlplane_utils.go b/test/integration/framework/controlplane_utils.go index fc02449a0fa..f403305dba6 100644 --- a/test/integration/framework/controlplane_utils.go +++ b/test/integration/framework/controlplane_utils.go @@ -232,6 +232,7 @@ func startAPIServerOrDie(controlPlaneConfig *controlplane.Config, incomingServer clientset, err := clientset.NewForConfig(controlPlaneConfig.GenericConfig.LoopbackClientConfig) if err != nil { + closeFn() klog.Fatal(err) }