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

View File

@ -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)