1
0
mirror of https://github.com/restic/restic.git synced 2025-08-25 13:57:32 +00:00

backend/test: fix delayedRemoval timeout handling

The timeout for all blobs starts to run after the delete calls have been
issue. Thus, use the same start time for all blobs instead of individual
timeouts.
This commit is contained in:
Michael Eischer
2025-03-23 16:16:47 +01:00
parent 2e58561ad6
commit 4350b95d27

@@ -740,8 +740,8 @@ func (s *Suite[C]) delayedRemove(t testing.TB, be backend.Backend, handles ...ba
return err
}
start := time.Now()
for _, h := range handles {
start := time.Now()
attempt := 0
var found bool
var err error