mirror of
https://github.com/restic/restic.git
synced 2026-10-12 21:17:12 +00:00
test: use parameter instead of hardcoded constant
This commit is contained in:
1 parent
a719d10e22
commit
0058745881
3 files changed
+3
-3
No files matched your search
@@ -331,7 +331,7 @@ var (
|
||||
func createFilledRepo(t testing.TB, snapshots int, dup float32, version uint) restic.Repository {
|
||||
repo := repository.TestRepositoryWithVersion(t, version)
|
||||
|
||||
for i := 0; i < 3; i++ {
|
||||
for i := 0; i < snapshots; i++ {
|
||||
restic.TestCreateSnapshot(t, repo, snapshotTime.Add(time.Duration(i)*time.Second), depth, dup)
|
||||
}
|
||||
return repo
|
||||
|
||||
Reference in new issue
Block a user