operations: fix TestMultithreadCopy leaving files behind when multipart upload is skipped

When a backend rejected the multipart upload as too small, the subtest
skipped without removing its local source file, so the following
upload subtests failed their local listing checks.
This commit is contained in:
Nick Craig-Wood committed 2026-09-23 16:00:59 +01:00
1 parent 0c52b183d0
commit ee9c228012
1 file changed
+1
+1
View File
@@ -223,6 +223,7 @@ func TestMultithreadCopy(t *testing.T) {
dst, err = multiThreadCopy(ctx, fDst, fileName, src, test.streams, tr)
if errors.Is(err, fs.ErrorFileTooSmall) {
require.NoError(t, src.Remove(ctx))
t.Skipf("file too small for multipart upload: %v", err)
}
require.NoError(t, err)