mirror of
https://github.com/restic/restic.git
synced 2026-08-10 07:33:19 +00:00
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:
@@ -0,0 +1,8 @@
|
||||
package backend
|
||||
|
||||
import "testing"
|
||||
|
||||
// TestFastRetries reduces the initial retry delay to 1 millisecond
|
||||
func TestFastRetries(t testing.TB) {
|
||||
fastRetries = true
|
||||
}
|
||||
Reference in New Issue
Block a user