Skip to content

Commit

Permalink
test: fix flaky test case test_space_usage_for_rebuilding_only_volume…
Browse files Browse the repository at this point in the history
… in rockylinux arm64

Signed-off-by: Yang Chiu <[email protected]>
  • Loading branch information
yangchiu authored and innobead committed Feb 21, 2024
1 parent b3a6cd6 commit a5e412a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions manager/integration/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -5022,15 +5022,15 @@ def test_space_usage_for_rebuilding_only_volume(client, volume_name, request):
snap_offset = 1
volume_endpoint = get_volume_endpoint(volume)
write_volume_dev_random_mb_data(volume_endpoint,
snap_offset, 3000, 5)
snap_offset, 3000, 10)

snap2 = create_snapshot(client, volume_name)
volume.snapshotDelete(name=snap2.name)
volume.snapshotPurge()
wait_for_snapshot_purge(client, volume_name, snap2.name)

write_volume_dev_random_mb_data(volume_endpoint,
snap_offset, 3000, 5)
snap_offset, 3000, 10)

for r in volume.replicas:
if r.hostId != lht_hostId:
Expand Down Expand Up @@ -5073,14 +5073,14 @@ def test_space_usage_for_rebuilding_only_volume_worst_scenario(client, volume_na
snap_offset = 1
volume_endpoint = get_volume_endpoint(volume)
write_volume_dev_random_mb_data(volume_endpoint,
snap_offset, 2000)
snap_offset, 2000, 10)
snap1 = create_snapshot(client, volume_name)
volume.snapshotDelete(name=snap1.name)
volume.snapshotPurge()
wait_for_snapshot_purge(client, volume_name, snap1.name)

write_volume_dev_random_mb_data(volume_endpoint,
snap_offset, 2000)
snap_offset, 2000, 10)

for r in volume.replicas:
if r.hostId != lht_hostId:
Expand All @@ -5090,7 +5090,7 @@ def test_space_usage_for_rebuilding_only_volume_worst_scenario(client, volume_na
wait_for_volume_degraded(client, volume_name)
wait_for_rebuild_start(client, volume_name)
write_volume_dev_random_mb_data(volume_endpoint,
snap_offset, 2000)
snap_offset, 2000, 10)

wait_for_rebuild_complete(client, volume_name)
volume = client.by_id_volume(volume_name)
Expand Down

0 comments on commit a5e412a

Please sign in to comment.