Skip to content

Commit 8bb9b0a

Browse files
committed
fixup myCrypto
1 parent 2639bf6 commit 8bb9b0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/api/multipartUpload.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,7 +1933,7 @@ describe('Multipart Upload API', () => {
19331933
assert.ifError(err);
19341934
const testUploadId =
19351935
json.InitiateMultipartUploadResult.UploadId[0];
1936-
const md5Hash = crypto.createHash('md5').update(partBody);
1936+
const md5Hash = myCrypto.createHash('md5').update(partBody);
19371937
const calculatedHash = md5Hash.digest('hex');
19381938
const partRequest = new DummyRequest({
19391939
bucketName,
@@ -2012,7 +2012,7 @@ describe('Multipart Upload API', () => {
20122012
assert.ifError(err);
20132013
const testUploadId =
20142014
json.InitiateMultipartUploadResult.UploadId[0];
2015-
const md5Hash = crypto.createHash('md5').update(partBody);
2015+
const md5Hash = myCrypto.createHash('md5').update(partBody);
20162016
const calculatedHash = md5Hash.digest('hex');
20172017
const partRequest = new DummyRequest({
20182018
bucketName,
@@ -2319,7 +2319,7 @@ describe('complete mpu with versioning', () => {
23192319
assert.ifError(err);
23202320
const testUploadId =
23212321
json.InitiateMultipartUploadResult.UploadId[0];
2322-
const md5Hash = crypto.createHash('md5').update(partBody);
2322+
const md5Hash = myCrypto.createHash('md5').update(partBody);
23232323
const calculatedHash = md5Hash.digest('hex');
23242324
const partRequest = new DummyRequest({
23252325
bucketName,

0 commit comments

Comments
 (0)