From 2a7769d904abdedaae0d5b73b4e772727226b3a6 Mon Sep 17 00:00:00 2001 From: Jilju Joy Date: Thu, 20 Jun 2024 11:57:21 +0530 Subject: [PATCH 1/2] Increase wait time for clone in the test test_pvc_to_pvc_clone Signed-off-by: Jilju Joy --- tests/functional/pv/pvc_clone/test_pvc_to_pvc_clone.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/functional/pv/pvc_clone/test_pvc_to_pvc_clone.py b/tests/functional/pv/pvc_clone/test_pvc_to_pvc_clone.py index 86ccb6495cb..c2c9c456246 100644 --- a/tests/functional/pv/pvc_clone/test_pvc_to_pvc_clone.py +++ b/tests/functional/pv/pvc_clone/test_pvc_to_pvc_clone.py @@ -106,7 +106,9 @@ def test_pvc_to_pvc_clone(self, interface_type, setup, teardown_factory): sc_name, parent_pvc, clone_yaml, namespace ) teardown_factory(cloned_pvc_obj) - helpers.wait_for_resource_state(cloned_pvc_obj, constants.STATUS_BOUND) + helpers.wait_for_resource_state( + cloned_pvc_obj, constants.STATUS_BOUND, timeout=120 + ) cloned_pvc_obj.reload() # Create and attach pod to the pvc From 4ce97d4e607e45e72505cbd774a7dc597e043647 Mon Sep 17 00:00:00 2001 From: Jilju Joy Date: Fri, 21 Jun 2024 10:21:20 +0530 Subject: [PATCH 2/2] address comments Signed-off-by: Jilju Joy --- tests/functional/pv/pvc_clone/test_pvc_to_pvc_clone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/pv/pvc_clone/test_pvc_to_pvc_clone.py b/tests/functional/pv/pvc_clone/test_pvc_to_pvc_clone.py index c2c9c456246..73ea1c57e95 100644 --- a/tests/functional/pv/pvc_clone/test_pvc_to_pvc_clone.py +++ b/tests/functional/pv/pvc_clone/test_pvc_to_pvc_clone.py @@ -107,7 +107,7 @@ def test_pvc_to_pvc_clone(self, interface_type, setup, teardown_factory): ) teardown_factory(cloned_pvc_obj) helpers.wait_for_resource_state( - cloned_pvc_obj, constants.STATUS_BOUND, timeout=120 + cloned_pvc_obj, constants.STATUS_BOUND, timeout=300 ) cloned_pvc_obj.reload()