Merge pull request #101461 from cynepco3hahue/fix_race_condition_under_memory_manager_test

e2e node: fix the race condition under the memory manager test
This commit is contained in:
Kubernetes Prow Robot 2021-05-10 18:51:36 -07:00 committed by GitHub
commit 0e13f93c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -383,6 +383,14 @@ var _ = SIGDescribe("Memory Manager [Serial] [Feature:MemoryManager][NodeAlphaFe
// update the kubelet config with old values
updateKubeletConfig(f, oldCfg)
// wait until the kubelet health check will pass and will continue to pass for specified period of time
gomega.Eventually(func() bool {
return kubeletHealthCheck(kubeletHealthCheckURL)
}, time.Minute, 10*time.Second).Should(gomega.BeTrue())
gomega.Consistently(func() bool {
return kubeletHealthCheck(kubeletHealthCheckURL)
}, time.Minute, 10*time.Second).Should(gomega.BeTrue())
})
ginkgo.Context("with static policy", func() {