From 9ace976b26e66325dd5e0be8601eb51e6d133ab9 Mon Sep 17 00:00:00 2001 From: Vasil Averyanau Date: Wed, 18 Dec 2024 10:40:13 +0100 Subject: [PATCH] fix(tests): increases backup timeout up to 20 seconds. --- pkg/service/backup/service_backup_integration_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/service/backup/service_backup_integration_test.go b/pkg/service/backup/service_backup_integration_test.go index 16e33c700..cfd3c3a9c 100644 --- a/pkg/service/backup/service_backup_integration_test.go +++ b/pkg/service/backup/service_backup_integration_test.go @@ -1172,6 +1172,8 @@ func TestBackupResumeIntegration(t *testing.T) { }) t.Run("continue false", func(t *testing.T) { + // Increase backup timeout to include additional time for cloudmeta pkg. + backupTimeout := backupTimeout * 2 var ( h = newBackupTestHelper(t, session, config, location, nil) ctx, cancel = context.WithCancel(context.Background()) @@ -1209,8 +1211,7 @@ func TestBackupResumeIntegration(t *testing.T) { <-ctx.Done() select { - // Added additional 5 seconds to include cloudmeta timeouts. - case <-time.After(backupTimeout + 5*time.Second): + case <-time.After(backupTimeout): t.Fatalf("Backup failed to complete in under %s", backupTimeout) case <-done: Print("Then: backup completed execution")