mirror of
https://github.com/restic/restic.git
synced 2025-12-04 00:11:47 +00:00
test: Use testing.T.Cleanup to remove tempdirs
This commit is contained in:
@@ -439,9 +439,7 @@ func TestTree(t *testing.T) {
|
||||
t.Skip("skip test on unix")
|
||||
}
|
||||
|
||||
tempdir, cleanup := restictest.TempDir(t)
|
||||
defer cleanup()
|
||||
|
||||
tempdir := restictest.TempDir(t)
|
||||
TestCreateFiles(t, tempdir, test.src)
|
||||
|
||||
back := restictest.Chdir(t, tempdir)
|
||||
|
||||
Reference in New Issue
Block a user