backend test: Always remove files for TestList
This commit is contained in:
parent
3eea555155
commit
b8af7f63a0
1 changed files with 11 additions and 14 deletions
|
@ -675,8 +675,6 @@ func (s *Suite) TestBackend(t *testing.T) {
|
||||||
t.Fatalf("lists aren't equal, want:\n %v\n got:\n%v\n", IDs, list)
|
t.Fatalf("lists aren't equal, want:\n %v\n got:\n%v\n", IDs, list)
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove content if requested
|
|
||||||
if test.TestCleanupTempDirs {
|
|
||||||
var handles []restic.Handle
|
var handles []restic.Handle
|
||||||
for _, ts := range testStrings {
|
for _, ts := range testStrings {
|
||||||
id, err := restic.ParseID(ts.id)
|
id, err := restic.ParseID(ts.id)
|
||||||
|
@ -693,7 +691,6 @@ func (s *Suite) TestBackend(t *testing.T) {
|
||||||
|
|
||||||
test.OK(t, s.delayedRemove(t, b, handles...))
|
test.OK(t, s.delayedRemove(t, b, handles...))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestDelete tests the Delete function.
|
// TestDelete tests the Delete function.
|
||||||
|
|
Loading…
Reference in a new issue