ensure reliable cleanup of test repository (#21880)

This commit is contained in:
Michael Eischer
2026-06-23 19:12:08 +02:00
committed by Michael Eischer
parent cb24c4f566
commit a3fa3eb182
5 changed files with 30 additions and 42 deletions
@@ -15,8 +15,7 @@ import (
var repoFixture = filepath.Join("..", "testdata", "test-repo.tar.gz")
func TestRepositoryForAllIndexes(t *testing.T) {
repo, _, cleanup := repository.TestFromFixture(t, repoFixture)
defer cleanup()
repo, _ := repository.TestFromFixture(t, repoFixture)
expectedIndexIDs := restic.NewIDSet()
rtest.OK(t, repo.List(context.TODO(), restic.IndexFile, func(id restic.ID, size int64) error {