forked from TrueCloudLab/restic
archiver: replace most uses of restic.Repository
This commit is contained in:
parent
864995271e
commit
6ca12c1b4a
4 changed files with 28 additions and 18 deletions
|
@ -46,7 +46,7 @@ func wrapFileInfo(fi os.FileInfo) os.FileInfo {
|
|||
return res
|
||||
}
|
||||
|
||||
func statAndSnapshot(t *testing.T, repo restic.Repository, name string) (*restic.Node, *restic.Node) {
|
||||
func statAndSnapshot(t *testing.T, repo archiverRepo, name string) (*restic.Node, *restic.Node) {
|
||||
fi := lstat(t, name)
|
||||
want, err := restic.NodeFromFileInfo(name, fi, false)
|
||||
rtest.OK(t, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue