Skip to content

Commit

Permalink
test: fix multipartUploadStreams.length test case
Browse files Browse the repository at this point in the history
  • Loading branch information
csg01123119 committed Aug 17, 2023
1 parent 3afea26 commit 2215238
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 @@ -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);
});

Expand Down

0 comments on commit 2215238

Please sign in to comment.