mirror of
https://github.com/restic/restic.git
synced 2026-06-27 02:54:19 +00:00
ensure reliable cleanup of test repository (#21880)
This commit is contained in:
committed by
Michael Eischer
parent
cb24c4f566
commit
a3fa3eb182
@@ -105,11 +105,11 @@ func TestRepositoryWithVersion(t testing.TB, version uint) (*Repository, restic.
|
||||
return repo, &internalRepository{repo}, be
|
||||
}
|
||||
|
||||
func TestFromFixture(t testing.TB, repoFixture string) (*Repository, backend.Backend, func()) {
|
||||
repodir, cleanup := test.Env(t, repoFixture)
|
||||
func TestFromFixture(t testing.TB, repoFixture string) (*Repository, backend.Backend) {
|
||||
repodir := test.Env(t, repoFixture)
|
||||
repo, be := TestOpenLocal(t, repodir)
|
||||
|
||||
return repo, be, cleanup
|
||||
return repo, be
|
||||
}
|
||||
|
||||
// TestOpenLocal opens a local repository.
|
||||
|
||||
Reference in New Issue
Block a user