mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Add a sleep in resize_nodes test to allow NodeController's Watch to catch up
This commit is contained in:
parent
98b954c74c
commit
e1e3101e75
@ -522,10 +522,13 @@ var _ = Describe("Nodes", func() {
|
|||||||
By(fmt.Sprintf("block network traffic from node %s", node.Name))
|
By(fmt.Sprintf("block network traffic from node %s", node.Name))
|
||||||
performTemporaryNetworkFailure(c, ns, name, replicas, pods.Items[0].Name, node)
|
performTemporaryNetworkFailure(c, ns, name, replicas, pods.Items[0].Name, node)
|
||||||
Logf("Waiting %v for node %s to be ready once temporary network failure ends", resizeNodeReadyTimeout, node.Name)
|
Logf("Waiting %v for node %s to be ready once temporary network failure ends", resizeNodeReadyTimeout, node.Name)
|
||||||
if !waitForNodeToBe(c, node.Name, true, resizeNodeReadyTimeout) {
|
if !waitForNodeToBeReady(c, node.Name, resizeNodeReadyTimeout) {
|
||||||
Failf("Node %s did not become ready within %v", node.Name, resizeNodeReadyTimeout)
|
Failf("Node %s did not become ready within %v", node.Name, resizeNodeReadyTimeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// sleep a bit, to allow Watch in NodeController to catch up.
|
||||||
|
time.Sleep(5 * time.Second)
|
||||||
|
|
||||||
By("verify whether new pods can be created on the re-attached node")
|
By("verify whether new pods can be created on the re-attached node")
|
||||||
// increasing the RC size is not a valid way to test this
|
// increasing the RC size is not a valid way to test this
|
||||||
// since we have no guarantees the pod will be scheduled on our node.
|
// since we have no guarantees the pod will be scheduled on our node.
|
||||||
|
Loading…
Reference in New Issue
Block a user