From e95f8f2e42abacc286c660e22e56b51f7e243eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Tyczy=C5=84ski?= Date: Tue, 5 Apr 2022 13:05:35 +0200 Subject: [PATCH] Clean apiserver shutdown in integration tests --- 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..71527da407b 100644 --- a/test/integration/framework/controlplane_utils.go +++ b/test/integration/framework/controlplane_utils.go @@ -186,6 +186,7 @@ func startAPIServerOrDie(controlPlaneConfig *controlplane.Config, incomingServer m.GenericAPIServer.RunPreShutdownHooks() } close(stopCh) + m.GenericAPIServer.Destroy() s.Close() }