speed-up integration tests by reducing the RetryBackend timeout

On my machine this decreases the runtime for `./cmd/restic` from 9.5s to
6.5s.
This commit is contained in:
Michael Eischer committed 2022-10-15 22:29:58 +02:00
1 parent 258b487d8f
commit e10420553b
3 files changed
+19 -1

No files matched your search

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