mirror of
https://github.com/restic/restic.git
synced 2025-12-04 02:55:48 +00:00
test: Use testing.T.Cleanup to remove tempdirs
This commit is contained in:
@@ -8,9 +8,7 @@ import (
|
||||
)
|
||||
|
||||
func TestFilesWriterBasic(t *testing.T) {
|
||||
dir, cleanup := rtest.TempDir(t)
|
||||
defer cleanup()
|
||||
|
||||
dir := rtest.TempDir(t)
|
||||
w := newFilesWriter(1)
|
||||
|
||||
f1 := dir + "/f1"
|
||||
|
||||
Reference in New Issue
Block a user