From 4203a4ddad88f6afed9a353aa74671ba322dc315 Mon Sep 17 00:00:00 2001 From: Karol Kokoszka Date: Tue, 12 Jul 2022 21:05:51 +0200 Subject: [PATCH] service/backup: integration test, fix TestPurgeTemporaryManifestsIntegration --- pkg/service/backup/service_backup_integration_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/service/backup/service_backup_integration_test.go b/pkg/service/backup/service_backup_integration_test.go index 7a660c7e8b..3dd059da16 100644 --- a/pkg/service/backup/service_backup_integration_test.go +++ b/pkg/service/backup/service_backup_integration_test.go @@ -1601,6 +1601,9 @@ func TestPurgeTemporaryManifestsIntegration(t *testing.T) { }) Print("And: run backup again") + // wait at least 1 sec to avoid having same snapshot ID as in previous backup run + time.Sleep(time.Second) + if err := h.service.Backup(ctx, h.clusterID, h.taskID, h.runID, target); err != nil { t.Fatal(err) }