ensure reliable cleanup of test repository (#21880)

This commit is contained in:
Michael Eischer authored and Michael Eischer committed 2026-06-23 19:12:08 +02:00
1 parent cb24c4f566
commit a3fa3eb182
5 files changed
+30 -42

No files matched your search

@@ -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 {