mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
e2e node: fix the race condition under the memory manager test
Wait for kubelet to be healthy after the dynamic update of the kubelet configuration. Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
This commit is contained in:
parent
6067d8556a
commit
79dbdbb4c1
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user