diff --git a/test/integration/framework/master_utils.go b/test/integration/framework/master_utils.go index d3e6179979e..23b523180e3 100644 --- a/test/integration/framework/master_utils.go +++ b/test/integration/framework/master_utils.go @@ -119,6 +119,7 @@ func startMasterOrDie(masterConfig *master.Config, incomingServer *httptest.Serv stopCh := make(chan struct{}) closeFn := func() { + m.GenericAPIServer.RunPreShutdownHooks() close(stopCh) s.Close() }