mirror of
https://github.com/restic/restic.git
synced 2025-08-11 04:08:03 +00:00
test: Use testing.T.Cleanup to remove tempdirs
This commit is contained in:
@@ -10,8 +10,7 @@ import (
|
||||
)
|
||||
|
||||
func TestLayout(t *testing.T) {
|
||||
path, cleanup := rtest.TempDir(t)
|
||||
defer cleanup()
|
||||
path := rtest.TempDir(t)
|
||||
|
||||
var tests = []struct {
|
||||
filename string
|
||||
|
Reference in New Issue
Block a user