mirror of
https://github.com/restic/restic.git
synced 2026-10-13 05:27:13 +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
@@ -20,6 +20,11 @@ func TestCheckRepo(t testing.TB, repo restic.Repository) {
|
||||
t.Fatalf("errors loading index: %v", hints)
|
||||
}
|
||||
|
||||
err := chkr.LoadSnapshots(context.TODO())
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
// packs
|
||||
errChan := make(chan error)
|
||||
go chkr.Packs(context.TODO(), errChan)
|
||||
|
||||
Reference in new issue
Block a user