Skip to content

Commit b82d9ae

Browse files
committed
test: fix flaky test test_recurring_jobs_when_volume_detached_unexpectedly for v2 volumes
Signed-off-by: Yang Chiu <yang.chiu@suse.com>
1 parent b28909d commit b82d9ae

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

manager/integration/tests/common.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3448,9 +3448,7 @@ def wait_for_backup_completion(client, volume_name, snapshot_name=None,
34483448
for b in v.backupStatus:
34493449
if snapshot_name is not None and b.snapshot != snapshot_name:
34503450
continue
3451-
if b.state == "Completed":
3452-
assert b.progress == 100
3453-
assert b.error == ""
3451+
if b.state == "Completed" and b.progress == 100 and b.error == "":
34543452
completed = True
34553453
break
34563454
if completed:

0 commit comments

Comments
 (0)