Compare commits

...

4 Commits

Author SHA1 Message Date
Bennett Buchanan f03a7c36fa Merge remote-tracking branch 'origin/rel/7.2' into forward-port/rel/7.2 2018-02-01 11:47:57 -08:00
Bennett Buchanan 564aec4fac
Merge pull request #1081 from scality/fix/flaky-azure-test
FIX: flaky azure test
2018-01-26 13:57:39 -08:00
Lauren Spiegel bd93c7f4ab CHORE: Lock utapi version to 7.2 2018-01-16 15:07:16 -08:00
Lauren Spiegel 36718f05a3 FIX: flaky azure test 2018-01-16 11:26:38 -08:00
1 changed files with 8 additions and 6 deletions

View File

@ -5,9 +5,11 @@ const BucketUtility = require('../../../lib/utility/bucket-util');
const { describeSkipIfNotMultiple, azureLocation, getAzureContainerName }
= require('../utils');
const azureContainerName = getAzureContainerName(azureLocation);
const bodyFirstPart = Buffer.alloc(10);
const bodySecondPart = Buffer.alloc(104857610);
const azureContainerName = getAzureContainerName();
const firstPartSize = 10;
const bodyFirstPart = Buffer.alloc(firstPartSize);
const secondPartSize = 15;
const bodySecondPart = Buffer.alloc(secondPartSize);
let bucketUtil;
let s3;
@ -67,10 +69,10 @@ describeSkipIfNotMultiple('List parts of MPU on Azure data backend', () => {
assert.equal(err, null, `Err listing parts: ${err}`);
assert.strictEqual(data.Parts.length, 2);
assert.strictEqual(data.Parts[0].PartNumber, 1);
assert.strictEqual(data.Parts[0].Size, 10);
assert.strictEqual(data.Parts[0].Size, firstPartSize);
assert.strictEqual(data.Parts[0].ETag, this.test.firstEtag);
assert.strictEqual(data.Parts[1].PartNumber, 2);
assert.strictEqual(data.Parts[1].Size, 104857610);
assert.strictEqual(data.Parts[1].Size, secondPartSize);
assert.strictEqual(data.Parts[1].ETag, this.test.secondEtag);
done();
});
@ -85,7 +87,7 @@ describeSkipIfNotMultiple('List parts of MPU on Azure data backend', () => {
(err, data) => {
assert.equal(err, null, `Err listing parts: ${err}`);
assert.strictEqual(data.Parts[0].PartNumber, 2);
assert.strictEqual(data.Parts[0].Size, 104857610);
assert.strictEqual(data.Parts[0].Size, secondPartSize);
assert.strictEqual(data.Parts[0].ETag, this.test.secondEtag);
done();
});