Logo
Explore Help
Sign In
TheArchive/restic
1
0
Fork 0
You've already forked restic
mirror of https://github.com/restic/restic.git synced 2025-05-09 19:26:50 +00:00
Code Issues Packages Projects Releases Wiki Activity
restic/internal/backend/retry/testing.go

9 lines
160 B
Go
Raw Normal View History

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-15 16:33:15 +02:00
package retry
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.
2022-10-15 22:29:58 +02:00
import "testing"
// TestFastRetries reduces the initial retry delay to 1 millisecond
Rename unused testing parameter to _ The parameter is an additional marker that the test helper must only be used for tests.
2023-05-18 19:23:32 +02:00
func TestFastRetries(_ testing.TB) {
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.
2022-10-15 22:29:58 +02:00
fastRetries = true
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.6 Page: 86ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API