forked from TrueCloudLab/restic
Remove unused argument to restic.fakeFile
This commit is contained in:
parent
8fb2c0d3c1
commit
2e31120f89
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ import (
|
|||
)
|
||||
|
||||
// fakeFile returns a reader which yields deterministic pseudo-random data.
|
||||
func fakeFile(t testing.TB, seed, size int64) io.Reader {
|
||||
func fakeFile(seed, size int64) io.Reader {
|
||||
return io.LimitReader(rand.New(rand.NewSource(seed)), size)
|
||||
}
|
||||
|
||||
|
@ -138,7 +138,7 @@ func (fs *fakeFileSystem) saveTree(ctx context.Context, seed int64, depth int) I
|
|||
Size: uint64(fileSize),
|
||||
}
|
||||
|
||||
node.Content = fs.saveFile(ctx, fakeFile(fs.t, fileSeed, fileSize))
|
||||
node.Content = fs.saveFile(ctx, fakeFile(fileSeed, fileSize))
|
||||
tree.Nodes = append(tree.Nodes, node)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue