Fix rmdirs test and integration tests which depend on each other

This commit is contained in:
Nick Craig-Wood
2016-12-31 15:36:58 +00:00
parent 64ec220d5d
commit 4dd5428b13
2 changed files with 23 additions and 7 deletions

View File

@ -17,6 +17,7 @@ func TestCopyWithDryRun(t *testing.T) {
r := NewRun(t)
defer r.Finalise()
file1 := r.WriteFile("sub dir/hello world", "hello world", t1)
r.Mkdir(r.fremote)
fs.Config.DryRun = true
err := fs.CopyDir(r.fremote, r.flocal)
@ -32,6 +33,7 @@ func TestCopy(t *testing.T) {
r := NewRun(t)
defer r.Finalise()
file1 := r.WriteFile("sub dir/hello world", "hello world", t1)
r.Mkdir(r.fremote)
err := fs.CopyDir(r.fremote, r.flocal)
require.NoError(t, err)