repository: add dedicated test helper

This commit is contained in:
Michael Eischer
2025-09-28 14:25:49 +02:00
parent 82971ad7f0
commit 189b295c30
8 changed files with 56 additions and 31 deletions

View File

@@ -402,7 +402,7 @@ func testIndexSave(t *testing.T, version uint) {
}))
rtest.Equals(t, 0, len(blobs), "saved index is missing blobs")
checker.TestCheckRepo(t, repo, false)
checker.TestCheckRepo(t, repo)
})
}
}
@@ -449,7 +449,7 @@ func testIndexSavePartial(t *testing.T, version uint) {
// remove pack files to make check happy
rtest.OK(t, restic.ParallelRemove(context.TODO(), unpacked, newPacks, restic.PackFile, nil, nil))
checker.TestCheckRepo(t, repo, false)
checker.TestCheckRepo(t, repo)
}
func listPacks(t testing.TB, repo restic.Lister) restic.IDSet {