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")