1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-05 18:13:17 +00:00

fstest: use Feature.CanHaveEmptyDirectories to sharpen tests

Now we actually test whether the directories are present or not,
filtering out empty directories in the test using the
CanHaveEmptyDirectories flag.
This commit is contained in:
Nick Craig-Wood
2017-08-09 15:51:27 +01:00
parent 20ae7d562b
commit 8a1a900733
2 changed files with 32 additions and 7 deletions

View File

@@ -773,7 +773,6 @@ func TestRmdirs(t *testing.T) {
[]fstest.Item{
file1, file2,
},
/* FIXME bucket based Fses are only showing some of the directories
[]string{
"A1",
"A1/B1",
@@ -785,8 +784,7 @@ func TestRmdirs(t *testing.T) {
"A3",
"A3/B3",
"A3/B3/C4",
},*/
nil,
},
fs.Config.ModifyWindow,
)