From a360760f3395572d01c5e91cb6926f9d44e82ea4 Mon Sep 17 00:00:00 2001 From: Yang Chiu Date: Tue, 12 Nov 2024 16:07:11 +0800 Subject: [PATCH] test: fix flaky test case test_recurring_job Signed-off-by: Yang Chiu --- manager/integration/tests/test_recurring_job.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manager/integration/tests/test_recurring_job.py b/manager/integration/tests/test_recurring_job.py index 4d71ca0b6c..b26f8eef19 100644 --- a/manager/integration/tests/test_recurring_job.py +++ b/manager/integration/tests/test_recurring_job.py @@ -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