From 2d4fa51a6d7e1f497c01f0bda24a7e852b3b638a Mon Sep 17 00:00:00 2001 From: David Eads Date: Mon, 11 Nov 2019 08:04:22 -0500 Subject: [PATCH] close scheduler kube-apiserver --- test/integration/util/util.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/util/util.go b/test/integration/util/util.go index af387617584..e274662eaac 100644 --- a/test/integration/util/util.go +++ b/test/integration/util/util.go @@ -47,10 +47,11 @@ func StartApiserver() (string, ShutdownFunc) { h.M.GenericAPIServer.Handler.ServeHTTP(w, req) })) - framework.RunAMasterUsingServer(framework.NewIntegrationTestMasterConfig(), s, h) + _, _, closeFn := framework.RunAMasterUsingServer(framework.NewIntegrationTestMasterConfig(), s, h) shutdownFunc := func() { klog.Infof("destroying API server") + closeFn() s.Close() klog.Infof("destroyed API server") }