test cleanups

This commit is contained in:
Michael Eischer
2024-05-19 14:41:11 +02:00
parent c01bcb1001
commit 0bb0720348
3 changed files with 1 additions and 9 deletions

View File

@@ -199,11 +199,6 @@ func rebuildIndex(t *testing.T, repo restic.Repository) {
}
func reloadIndex(t *testing.T, repo restic.Repository) {
err := repo.SetIndex(index.NewMasterIndex())
if err != nil {
t.Fatal(err)
}
if err := repo.LoadIndex(context.TODO(), nil); err != nil {
t.Fatalf("error loading new index: %v", err)
}