1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-06 02:23:24 +00:00

fs: calculate ModifyWindow each time on the fly instead of relying on global state - see #2319, #2328

This commit is contained in:
Stefan
2018-06-03 20:45:34 +02:00
committed by GitHub
parent 3ef938ebde
commit 4009fb67c8
9 changed files with 43 additions and 83 deletions

View File

@@ -411,7 +411,7 @@ func TestRmdirsNoLeaveRoot(t *testing.T) {
"A3/B3",
"A3/B3/C4",
},
fs.Config.ModifyWindow,
fs.GetModifyWindow(r.Fremote),
)
require.NoError(t, operations.Rmdirs(r.Fremote, "", false))
@@ -427,7 +427,7 @@ func TestRmdirsNoLeaveRoot(t *testing.T) {
"A1/B1",
"A1/B1/C1",
},
fs.Config.ModifyWindow,
fs.GetModifyWindow(r.Fremote),
)
}
@@ -452,7 +452,7 @@ func TestRmdirsLeaveRoot(t *testing.T) {
"A1/B1",
"A1/B1/C1",
},
fs.Config.ModifyWindow,
fs.GetModifyWindow(r.Fremote),
)
require.NoError(t, operations.Rmdirs(r.Fremote, "A1", true))
@@ -464,7 +464,7 @@ func TestRmdirsLeaveRoot(t *testing.T) {
[]string{
"A1",
},
fs.Config.ModifyWindow,
fs.GetModifyWindow(r.Fremote),
)
}