Skip to content

Commit

Permalink
tests, marker-test: increase timeout (#43)
Browse files Browse the repository at this point in the history
Recently the update interval of the node  was increased to 1 minute, and also a jitter
with 1.2 factor was added. This means that if for some reason one update was missed,
in the worst-case scenario there could be almost 2 minutes and a half difference between updates.

This could  makes the 120 interval not enough for the a pod to turn from Pending to Running
based on the label added to the node.

Therefor this commit increases the timeout for 240 seconds which should be enough for
the label to appear on the node and for the pod to become ready.

Signed-off-by: alonsadan <[email protected]>
  • Loading branch information
alonSadan authored Aug 31, 2021
1 parent d1c2c28 commit 46b2b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/marker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ var _ = Describe("bridge-marker", func() {

node, err := tests.AddBridgeOnSchedulableNode(clientset, tests.TestPodBridgeName)
tests.CheckPodStatus(
clientset, 120,
clientset, 240,
func(pod *corev1.Pod) bool {
if pod.Status.Phase == "Running" {
Expect(pod.Spec.NodeName).To(Equal(node))
Expand Down

0 comments on commit 46b2b0f

Please sign in to comment.