mirror of
https://github.com/restic/restic.git
synced 2025-12-03 20:51:47 +00:00
test: use parameter instead of hardcoded constant
This commit is contained in:
@@ -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