From 76b07284fde392909a63353087664880e7d6c4f7 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 16 Sep 2024 11:21:32 +0800 Subject: [PATCH] fix(recurringjob): use new volume to check backup status. Ref: longhorn/longhorn 9454 Signed-off-by: James Lu --- manager/integration/tests/test_recurring_job.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manager/integration/tests/test_recurring_job.py b/manager/integration/tests/test_recurring_job.py index c5fb32c313..4d71ca0b6c 100644 --- a/manager/integration/tests/test_recurring_job.py +++ b/manager/integration/tests/test_recurring_job.py @@ -268,8 +268,7 @@ def test_recurring_job(set_random_backupstore, client, volume_name): # NOQA complete_backup_1_count = 0 complete_backup_2_count = 0 - volume = client.by_id_volume(volume_name) - wait_for_backup_completion(client, volume_name) + volume = wait_for_backup_completion(client, volume_name) for b in volume.backupStatus: if "backup1-" in b.snapshot: complete_backup_1_count += 1