File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments