mirror of
https://github.com/restic/restic.git
synced 2026-11-21 13:02:42 +00:00
test: Use testing.T.Cleanup to remove tempdirs
This commit is contained in:
1 parent
eae7366563
commit
f90bf84ba7
31 files changed
+79
-176
No files matched your search
@@ -60,8 +60,10 @@ func (s *Suite) RunTests(t *testing.T) {
|
||||
return
|
||||
}
|
||||
|
||||
if err = s.Cleanup(s.Config); err != nil {
|
||||
t.Fatal(err)
|
||||
if s.Cleanup != nil {
|
||||
if err = s.Cleanup(s.Config); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user