Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix flaky test case test_space_usage_for_rebuilding_only_volume in rockylinux arm64 #1734

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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