Skip to content

Commit

Permalink
Increased timeout value in case of compact mode cluster is deployed (#…
Browse files Browse the repository at this point in the history
…9843)

Signed-off-by: Parag Kamble <[email protected]>
  • Loading branch information
paraggit authored May 23, 2024
1 parent fc54b0d commit 16c9c5f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/functional/pv/pv_services/test_verify_rwo_using_dc_pod.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from ocs_ci.ocs.resources import pod
from ocs_ci.ocs.ocp import OCP
from ocs_ci.helpers.helpers import wait_for_resource_state, create_pod
from ocs_ci.framework import config

from ocs_ci.utility.utils import TimeoutSampler

Expand Down Expand Up @@ -82,9 +83,14 @@ def wait_for_pods_and_verify(self):
"""
Wait for the pods to be created and verify only one pod is running
"""
timeout_value = 360

if config.ENV_DATA.get("worker_replicas") == 0:
timeout_value = 600

# Wait for pods
for pods in TimeoutSampler(
360,
timeout_value,
2,
func=pod.get_all_pods,
namespace=self.namespace,
Expand All @@ -98,7 +104,7 @@ def wait_for_pods_and_verify(self):

# Wait for one pod to be in Running state
curr_pod = next(pods_iter)
sampler = TimeoutSampler(360, 2, curr_pod.get)
sampler = TimeoutSampler(timeout_value, 2, curr_pod.get)
for pod_info in sampler:
if pod_info["status"]["phase"] == constants.STATUS_RUNNING:
self.running_pod = curr_pod
Expand Down

0 comments on commit 16c9c5f

Please sign in to comment.