Skip to content

Commit e35ba29

Browse files
shungangcsg01123119
and
csg01123119
authoredJul 17, 2023
test: fix multipartUploadStreams.length test case (#1223)
Co-authored-by: csg01123119 <csg01123119@alibaba-inc.com>
1 parent bc05406 commit e35ba29

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎test/node/multipart.test.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,11 @@ describe('test/multipart.test.js', () => {
943943
const name = `${prefix}multipart/upload-file-${Date.now()}`;
944944
const name1 = `${prefix}multipart/upload-file-1-${Date.now()}`;
945945
try {
946-
await Promise.all([store.multipartUpload(name, fileName), store.multipartUpload(name1, fileName)]);
946+
const p1 = store.multipartUpload(name, fileName);
947+
const p2 = store.multipartUpload(name1, fileName).catch(error => {
948+
console.log('info >', error.message);
949+
});
950+
await Promise.all([p1, p2]);
947951
} catch (e) {}
948952
mm.restore();
949953
await Promise.all([store.multipartUpload(name, fileName), store.multipartUpload(name1, fileName)]);

0 commit comments

Comments
 (0)
Please sign in to comment.