mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Clean apiserver shutdown in integration tests
This commit is contained in:
parent
f62c14a9cc
commit
e95f8f2e42
@ -186,6 +186,7 @@ func startAPIServerOrDie(controlPlaneConfig *controlplane.Config, incomingServer
|
|||||||
m.GenericAPIServer.RunPreShutdownHooks()
|
m.GenericAPIServer.RunPreShutdownHooks()
|
||||||
}
|
}
|
||||||
close(stopCh)
|
close(stopCh)
|
||||||
|
m.GenericAPIServer.Destroy()
|
||||||
s.Close()
|
s.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user