mirror of
https://github.com/restic/restic.git
synced 2025-08-25 20:57:44 +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:
@@ -740,8 +740,8 @@ func (s *Suite[C]) delayedRemove(t testing.TB, be backend.Backend, handles ...ba
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start := time.Now()
|
||||||
for _, h := range handles {
|
for _, h := range handles {
|
||||||
start := time.Now()
|
|
||||||
attempt := 0
|
attempt := 0
|
||||||
var found bool
|
var found bool
|
||||||
var err error
|
var err error
|
||||||
|
Reference in New Issue
Block a user