Skip to content

Commit

Permalink
test: fix flaky test case test_replica_rebuild_per_volume_limit
Browse files Browse the repository at this point in the history
Add wait_for_volume_healthy before deleting replicas

to wait for volume rebuilding to complete.

longhorn/longhorn#8011

Signed-off-by: Roger Yao <[email protected]>
(cherry picked from commit 76f9406)
  • Loading branch information
roger-ryao authored and c3y1huang committed Mar 1, 2024
1 parent 5869c26 commit b2ede93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions manager/integration/tests/test_scheduling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit b2ede93

Please sign in to comment.