mirror of
https://github.com/restic/restic.git
synced 2025-08-21 12:27:32 +00:00
test: use parameter instead of hardcoded constant
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
func createTestFiles(t testing.TB, num int) (files []string) {
|
||||
tempdir := test.TempDir(t)
|
||||
|
||||
for i := 0; i < 15; i++ {
|
||||
for i := 0; i < num; i++ {
|
||||
filename := fmt.Sprintf("testfile-%d", i)
|
||||
err := os.WriteFile(filepath.Join(tempdir, filename), []byte(filename), 0600)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user