Skip to content

Commit

Permalink
fix(tests): increases backup timeout up to 20 seconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
VAveryanov8 committed Dec 18, 2024
1 parent 4fbd7bd commit 9ace976
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/service/backup/service_backup_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 9ace976

Please sign in to comment.