From e35ba29cfe9df873d3cafc99fe4fdc30b671e061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=BA=E5=88=9A?= <735073554@qq.com> Date: Mon, 17 Jul 2023 10:09:58 +0800 Subject: [PATCH] test: fix multipartUploadStreams.length test case (#1223) Co-authored-by: csg01123119 --- test/node/multipart.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/node/multipart.test.js b/test/node/multipart.test.js index 153c5df13..032464f97 100644 --- a/test/node/multipart.test.js +++ b/test/node/multipart.test.js @@ -943,7 +943,11 @@ describe('test/multipart.test.js', () => { const name = `${prefix}multipart/upload-file-${Date.now()}`; const name1 = `${prefix}multipart/upload-file-1-${Date.now()}`; try { - await Promise.all([store.multipartUpload(name, fileName), store.multipartUpload(name1, fileName)]); + const p1 = store.multipartUpload(name, fileName); + const p2 = store.multipartUpload(name1, fileName).catch(error => { + console.log('info >', error.message); + }); + await Promise.all([p1, p2]); } catch (e) {} mm.restore(); await Promise.all([store.multipartUpload(name, fileName), store.multipartUpload(name1, fileName)]);