1
mirror of https://github.com/rclone/rclone synced 2024-12-26 18:23:45 +01:00

Fix rmdirs test

This commit is contained in:
Nick Craig-Wood 2016-11-28 12:23:24 +00:00
parent 651db36674
commit 539853df36

View File

@ -642,6 +642,11 @@ func TestCat(t *testing.T) {
func TestRmdirs(t *testing.T) {
r := NewRun(t)
defer r.Finalise()
// Clean any directories that have crept in so far
// FIXME make the Finalise method do this?
require.NoError(t, fs.Rmdirs(r.fremote))
// Make some files and dirs we expect to keep
file1 := r.WriteObject("A1/B1/C1/one", "aaa", t1)
file2 := r.WriteObject("A1/two", "bbb", t2)