From 61c6eb6b45b4979d79e7887a713fc0d0b05bf909 Mon Sep 17 00:00:00 2001 From: Roger Yao Date: Thu, 29 Feb 2024 17:45:09 +0800 Subject: [PATCH] test: fix flaky test case `test_replica_rebuild_per_volume_limit` Add wait_for_volume_healthy before deleting replicas to wait for volume rebuilding to complete. longhorn/longhorn#8011 Signed-off-by: Roger Yao --- manager/integration/tests/test_scheduling.py | 1 + 1 file changed, 1 insertion(+) diff --git a/manager/integration/tests/test_scheduling.py b/manager/integration/tests/test_scheduling.py index e6ffacd7c5..c95ce6101e 100644 --- a/manager/integration/tests/test_scheduling.py +++ b/manager/integration/tests/test_scheduling.py @@ -463,6 +463,7 @@ def test_replica_rebuild_per_volume_limit(client, core_api, storage_class, sts_n vol = common.wait_for_volume_replicas_mode(client, vol_name, 'RW', replica_count=r_count) + wait_for_volume_healthy(client, vol_name) # Delete 4 volume replicas del vol.replicas[0]