Skip to content

Commit 5d7142b

Browse files
committed
fix: 修复单测
1 parent cb734f9 commit 5d7142b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4423,16 +4423,16 @@ group('BucketInventory', function () {
44234423
});
44244424

44254425
test('postBucketInventory()', function (done) {
4426-
var config = JSON.parse(JSON.stringify(InventoryConfiguration));
4427-
config.Id = config.Id + Date.now().toString(36);
4428-
delete config.IsEnabled;
4429-
delete config.Schedule;
4426+
var inventoryConfig = JSON.parse(JSON.stringify(InventoryConfiguration));
4427+
inventoryConfig.Id = inventoryConfig.Id + Date.now().toString(36);
4428+
delete inventoryConfig.IsEnabled;
4429+
delete inventoryConfig.Schedule;
44304430
cos.postBucketInventory(
44314431
{
44324432
Bucket: config.Bucket,
44334433
Region: config.Region,
4434-
Id: config.Id,
4435-
InventoryConfiguration: config,
4434+
Id: inventoryConfig.Id,
4435+
InventoryConfiguration: inventoryConfig,
44364436
},
44374437
function (err, data) {
44384438
assert.ok(!err);

0 commit comments

Comments
 (0)