Merge pull request #101569 from wzshiming/test/e2e-node-shutdown

Fix flake for GracefulNodeShutdown e2e
This commit is contained in:
Kubernetes Prow Robot
2021-04-29 09:01:25 -07:00
committed by GitHub

View File

@@ -59,6 +59,11 @@ var _ = SIGDescribe("GracefulNodeShutdown [Serial] [NodeAlphaFeature:GracefulNod
initialConfig.ShutdownGracePeriodCriticalPods = metav1.Duration{Duration: nodeShutdownGracePeriodCriticalPods}
})
ginkgo.BeforeEach(func() {
ginkgo.By("Wait for the node to be ready")
waitForNodeReady()
})
ginkgo.AfterEach(func() {
ginkgo.By("Emitting Shutdown false signal; cancelling the shutdown")
err := emitSignalPrepareForShutdown(false)