forked from TrueCloudLab/rclone
fstests: add integration test for OpenChunkWriter uploading to the wrong name
This commit is contained in:
parent
adfb1f7c7d
commit
0180301b3f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue