Skip to content

Commit

Permalink
test: fix flaky test case test_recurring_job
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Chiu <[email protected]>
  • Loading branch information
yangchiu committed Nov 12, 2024
1 parent c1a9afa commit a103f50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manager/integration/tests/test_recurring_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ def test_recurring_job(set_random_backupstore, client, volume_name): # NOQA
complete_backup_2_count = 0
volume = wait_for_backup_completion(client, volume_name)
for b in volume.backupStatus:
if "backup1-" in b.snapshot:
if "backup1-" in b.snapshot and b.state != "Deleting":
complete_backup_1_count += 1
elif "backup2-" in b.snapshot:
elif "backup2-" in b.snapshot and b.state != "Deleting":
complete_backup_2_count += 1

# 1 completed backups from backup1
Expand Down

0 comments on commit a103f50

Please sign in to comment.