mirror of
https://github.com/restic/restic.git
synced 2025-08-12 04:07:41 +00:00
Fix calls to repo/backend.List() everywhere
This commit is contained in:
@@ -369,7 +369,7 @@ func TestRepositoryIncrementalIndex(t *testing.T) {
|
||||
|
||||
packEntries := make(map[restic.ID]map[restic.ID]struct{})
|
||||
|
||||
for id := range repo.List(context.TODO(), restic.IndexFile) {
|
||||
err := repo.List(context.TODO(), restic.IndexFile, func(id restic.ID, size int64) error {
|
||||
idx, err := repository.LoadIndex(context.TODO(), repo, id)
|
||||
rtest.OK(t, err)
|
||||
|
||||
@@ -380,6 +380,10 @@ func TestRepositoryIncrementalIndex(t *testing.T) {
|
||||
|
||||
packEntries[pb.PackID][id] = struct{}{}
|
||||
}
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
for packID, ids := range packEntries {
|
||||
|
Reference in New Issue
Block a user