mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 20:20:16 +08:00
fstests: add integration test for OpenChunkWriter uploading to the wrong name
This commit is contained in:
parent
adfb1f7c7d
commit
0180301b3f
|
@ -802,8 +802,8 @@ func Run(t *testing.T, opt *Opt) {
|
||||||
contents3 := random.String(size1MB)
|
contents3 := random.String(size1MB)
|
||||||
|
|
||||||
path := "writer-at-subdir/writer-at-file"
|
path := "writer-at-subdir/writer-at-file"
|
||||||
objSrc := object.NewStaticObjectInfo(path, file1.ModTime, -1, true, nil, nil)
|
objSrc := object.NewStaticObjectInfo(path+"-WRONG-REMOTE", file1.ModTime, -1, true, nil, nil)
|
||||||
_, out, err := openChunkWriter(ctx, objSrc.Remote(), objSrc, &fs.ChunkOption{
|
_, out, err := openChunkWriter(ctx, path, objSrc, &fs.ChunkOption{
|
||||||
ChunkSize: int64(size5MBs),
|
ChunkSize: int64(size5MBs),
|
||||||
})
|
})
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user