mirror of
https://github.com/rclone/rclone
synced 2024-11-25 02:47:14 +01:00
operations: fix --max-transfer test with jottacloud
Jottacloud was deduplicating the uploads, so make a different upload each time
This commit is contained in:
parent
f94257115f
commit
4c82b1f3c6
@ -44,6 +44,7 @@ import (
|
||||
"github.com/rclone/rclone/fs/hash"
|
||||
"github.com/rclone/rclone/fs/operations"
|
||||
"github.com/rclone/rclone/fstest"
|
||||
"github.com/rclone/rclone/lib/random"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
@ -1545,7 +1546,7 @@ func TestCopyFileMaxTransfer(t *testing.T) {
|
||||
|
||||
const sizeCutoff = 2048
|
||||
file1 := r.WriteFile("file1", "file1 contents", t1)
|
||||
file2 := r.WriteFile("file2", "file2 contents"+string(make([]byte, sizeCutoff)), t2)
|
||||
file2 := r.WriteFile("file2", "file2 contents"+random.String(sizeCutoff), t2)
|
||||
|
||||
rfile1 := file1
|
||||
rfile1.Path = "sub/file1"
|
||||
|
Loading…
Reference in New Issue
Block a user