test: use parameter instead of hardcoded constant

This commit is contained in:
Michael Eischer
2023-05-18 19:31:42 +02:00
parent a719d10e22
commit 0058745881
3 changed files with 3 additions and 3 deletions

View File

@@ -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