From 2215238fc7ae4e9097771faa4a7b793b2ffdaa4c Mon Sep 17 00:00:00 2001 From: csg01123119 Date: Thu, 17 Aug 2023 17:14:28 +0800 Subject: [PATCH] test: fix multipartUploadStreams.length test case --- 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 34ed25c88..add342969 100644 --- a/test/node/multipart.test.js +++ b/test/node/multipart.test.js @@ -945,7 +945,11 @@ describe('test/multipart.test.js', () => { await Promise.all([p1, p2]); } catch (e) {} mm.restore(); - await Promise.all([store.multipartUpload(name, fileName), store.multipartUpload(name1, fileName)]); + const p3 = store.multipartUpload(name, fileName); + const p4 = store.multipartUpload(name1, fileName).catch(error => { + console.log('info >', error.message); + }); + await Promise.all([p3, p4]); assert.strictEqual(store.multipartUploadStreams.length, 0); });