From 0180301b3f692cc0ced4fd959088dd883432c39d Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 28 Oct 2023 14:51:01 +0100 Subject: [PATCH] fstests: add integration test for OpenChunkWriter uploading to the wrong name --- fstest/fstests/fstests.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go index dc9529289..cfc4cf069 100644 --- a/fstest/fstests/fstests.go +++ b/fstest/fstests/fstests.go @@ -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)