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.
This commit is contained in:
Michael Eischer
2022-10-15 16:33:15 +02:00
parent 32603d49c4
commit 5c7a9a739a
5 changed files with 27 additions and 26 deletions

View File

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