mirror of
https://github.com/restic/restic.git
synced 2026-11-15 18:36:45 +00:00
ensure reliable cleanup of test repository (#21880)
This commit is contained in:
1 parent
0536e15bbf
commit
71f38d266c
6 files changed
+31
-44
No files matched your search
@@ -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