Pass Context to NewRestorer()

This commit is contained in:
Alexander Neumann 2020-10-10 15:24:26 +02:00
parent f0d49ca600
commit c193cea119

View file

@ -758,7 +758,7 @@ func TestRestorerConsistentTimestampsAndPermissions(t *testing.T) {
},
})
res, err := NewRestorer(repo, id)
res, err := NewRestorer(context.TODO(), repo, id)
rtest.OK(t, err)
res.SelectFilter = func(item string, dstpath string, node *restic.Node) (selectedForRestore bool, childMayBeSelected bool) {