mirror of
https://github.com/rclone/rclone.git
synced 2026-10-10 06:55:45 -04:00
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:
1 parent
0c52b183d0
commit
ee9c228012
1 file changed
+1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user