From 1e7b6c1c6c44ef1d9f0099a84ff7ffa408b63483 Mon Sep 17 00:00:00 2001 From: Ram Lavi Date: Wed, 7 Aug 2024 09:25:59 +0300 Subject: [PATCH] test/e2e: Allow eventual consistency in deployment Since the net-attach-def's deployment is not dependant on the deployment of the net-attach-def's CRD (by Multus) - e2e test must allow for the deployment to eventually settle before checking deployment. Signed-off-by: Ram Lavi --- test/e2e/workflow/deployment_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/workflow/deployment_test.go b/test/e2e/workflow/deployment_test.go index 9dda94803..d4d9eb761 100644 --- a/test/e2e/workflow/deployment_test.go +++ b/test/e2e/workflow/deployment_test.go @@ -31,7 +31,7 @@ var _ = Describe("NetworkAddonsConfig", func() { testConfigCreate(gvk, configSpec, components) // Make sure that deployed components remain up and running - CheckConfigCondition(gvk, ConditionAvailable, ConditionTrue, CheckImmediately, time.Minute) + CheckConfigCondition(gvk, ConditionAvailable, ConditionTrue, 10*time.Second, time.Minute) }, Entry( "Empty config", @@ -485,7 +485,7 @@ func checkConfigChange(gvk schema.GroupVersionKind, components []Component, whil CheckConfigCondition(gvk, ConditionProgressing, ConditionTrue, 5*time.Minute, CheckDoNotRepeat) // Wait until Available condition is reported. It may take a few minutes the first time // we are pulling component images to the Node - CheckConfigCondition(gvk, ConditionAvailable, ConditionTrue, 15*time.Minute, CheckDoNotRepeat) + CheckConfigCondition(gvk, ConditionAvailable, ConditionTrue, 15*time.Minute, 10*time.Second) CheckConfigCondition(gvk, ConditionProgressing, ConditionFalse, CheckImmediately, CheckDoNotRepeat) // Check that all requested components have been deployed