Skip to content

Commit 6bfd4eb

Browse files
CLDSRV-621: Fix backported tests
1 parent 861a69b commit 6bfd4eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/api/multipartUpload.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2412,7 +2412,7 @@ describe('complete mpu with bucket policy', () => {
24122412
json.InitiateMultipartUploadResult.UploadId[0];
24132413
const md5Hash = crypto.createHash('md5').update(partBody);
24142414
const calculatedHash = md5Hash.digest('hex');
2415-
const partRequest = new DummyRequest({
2415+
const partRequest = new DummyRequest(Object.assign({
24162416
bucketName,
24172417
namespace,
24182418
objectKey,
@@ -2434,7 +2434,7 @@ describe('complete mpu with bucket policy', () => {
24342434
socket: {
24352435
remoteAddress: '1.1.1.1',
24362436
},
2437-
}, partBody);
2437+
}, requestFix), partBody);
24382438
objectPutPart(authInfoOtherAcc, partRequest, undefined, log, err => {
24392439
assert.ifError(err);
24402440
const completeBody = '<CompleteMultipartUpload>' +
@@ -2443,7 +2443,7 @@ describe('complete mpu with bucket policy', () => {
24432443
`<ETag>"${calculatedHash}"</ETag>` +
24442444
'</Part>' +
24452445
'</CompleteMultipartUpload>';
2446-
const completeRequest = {
2446+
const completeRequest = new DummyRequest(Object.assign({
24472447
bucketName,
24482448
namespace,
24492449
objectKey,
@@ -2456,7 +2456,7 @@ describe('complete mpu with bucket policy', () => {
24562456
socket: {
24572457
remoteAddress: '1.1.1.1',
24582458
},
2459-
};
2459+
}, requestFix));
24602460
completeMultipartUpload(authInfoOtherAcc,
24612461
completeRequest, log, err => {
24622462
assert.ifError(err);

0 commit comments

Comments
 (0)