mirror of
https://github.com/restic/restic.git
synced 2026-11-13 22:43:03 +00:00
copy: Load snapshots before indexes
This commit is contained in:
1 parent
47243176fa
commit
7b9ae91e04
5 files changed
+29
-3
No files matched your search
@@ -369,6 +369,11 @@ func TestIndexSave(t *testing.T) {
|
||||
}
|
||||
|
||||
checker := checker.New(repo, false)
|
||||
err = checker.LoadSnapshots(context.TODO())
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
hints, errs := checker.LoadIndex(context.TODO())
|
||||
for _, h := range hints {
|
||||
t.Logf("hint: %v\n", h)
|
||||
|
||||
Reference in new issue
Block a user