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:
@@ -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),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user