test: use parameter instead of hardcoded constant

This commit is contained in:
Michael Eischer committed 2023-05-18 21:17:53 +02:00
1 parent a719d10e22
commit 0058745881
3 files changed
+3 -3

No files matched your search

+1 -1
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