mirror of
https://github.com/rclone/rclone.git
synced 2025-08-18 01:20:16 +02:00
operations: Don't use multi-thread copy if the backend doesn't support it #6915
This commit is contained in:
@@ -79,6 +79,11 @@ func TestDoMultiThreadCopy(t *testing.T) {
|
||||
assert.True(t, doMultiThreadCopy(ctx, f, src))
|
||||
srcFs.Features().IsLocal = false
|
||||
assert.True(t, doMultiThreadCopy(ctx, f, src))
|
||||
|
||||
srcFs.Features().NoMultiThreading = true
|
||||
assert.False(t, doMultiThreadCopy(ctx, f, src))
|
||||
srcFs.Features().NoMultiThreading = false
|
||||
assert.True(t, doMultiThreadCopy(ctx, f, src))
|
||||
}
|
||||
|
||||
func TestMultithreadCalculateChunks(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user