Skip to content

Commit

Permalink
test: fix multipartUploadStreams.length test case (#1223)
Browse files Browse the repository at this point in the history
Co-authored-by: csg01123119 <[email protected]>
  • Loading branch information
shungang and csg01123119 authored Jul 17, 2023
1 parent bc05406 commit e35ba29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/node/multipart.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)]);
Expand Down

0 comments on commit e35ba29

Please sign in to comment.