From b51f10b464940954b4c607a03f0ddbb139b9f00f 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 (cherry picked from commit 76f9406a3e50dd655e9b5e4a0bad5b4a3502b607) --- 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 d238d6c2e9..80ba55a310 100644 --- a/manager/integration/tests/test_scheduling.py +++ b/manager/integration/tests/test_scheduling.py @@ -452,6 +452,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]