fstests: add integration test for OpenChunkWriter uploading to the wrong name

This commit is contained in:
Nick Craig-Wood 2023-10-28 14:51:01 +01:00
parent adfb1f7c7d
commit 0180301b3f
1 changed files with 2 additions and 2 deletions

View File

@ -802,8 +802,8 @@ func Run(t *testing.T, opt *Opt) {
contents3 := random.String(size1MB)
path := "writer-at-subdir/writer-at-file"
objSrc := object.NewStaticObjectInfo(path, file1.ModTime, -1, true, nil, nil)
_, out, err := openChunkWriter(ctx, objSrc.Remote(), objSrc, &fs.ChunkOption{
objSrc := object.NewStaticObjectInfo(path+"-WRONG-REMOTE", file1.ModTime, -1, true, nil, nil)
_, out, err := openChunkWriter(ctx, path, objSrc, &fs.ChunkOption{
ChunkSize: int64(size5MBs),
})
require.NoError(t, err)