1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-28 10:49:02 +00:00
restic/internal/backend/retry/testing.go
Michael Eischer 5c7a9a739a backend: Split RetryBackend into own package
The RetryBackend tests depend on the mock backend. When the Backend
interface is eventually split from the restic package, this will lead to
a dependency cycle between backend and backend/mock. Thus split the
RetryBackend into a separate package to avoid this problem.
2022-10-21 21:38:17 +02:00

8 lines
160 B
Go

package retry
import "testing"
// TestFastRetries reduces the initial retry delay to 1 millisecond
func TestFastRetries(t testing.TB) {
fastRetries = true
}