mirror of https://github.com/k3s-io/k3s
Add a sleep in resize_nodes test to allow NodeController's Watch to catch up
parent
98b954c74c
commit
e1e3101e75
|
@ -522,10 +522,13 @@ var _ = Describe("Nodes", func() {
|
|||
By(fmt.Sprintf("block network traffic from node %s", node.Name))
|
||||
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)
|
||||
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)
|
||||
}
|
||||
|
||||
// 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")
|
||||
// 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.
|
||||
|
|
Loading…
Reference in New Issue