Skip to content

Commit

Permalink
chore: edit dev_node_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
csg01123119 committed Sep 5, 2023
1 parent dbe6d15 commit 80cf2e9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/node/bucket.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,7 @@ describe('test/bucket.test.js', () => {
}
});
});
describe.only('inventory()', () => {
describe('inventory()', () => {
const inventory = {
id: 'default',
isEnabled: false,
Expand All @@ -1323,7 +1323,7 @@ describe('test/bucket.test.js', () => {
field: ['Size', 'LastModifiedDate']
}
};
console.log('inventory', inventory);

describe('putBucketInventory', () => {
before(() => {
inventory.OSSBucketDestination.bucket = bucket;
Expand All @@ -1343,16 +1343,13 @@ describe('test/bucket.test.js', () => {
});
it('should put bucket inventory when no optionalFields or no field', async () => {
try {
console.log('111', bucket);
await store.putBucketInventory(bucket, { ...inventory, id: 'test_optionalFields', optionalFields: {} });
console.log('222');
await store.putBucketInventory(bucket, { ...inventory, id: 'test_field', optionalFields: {} });
inventory.optionalFields = { field: ['Size'] };
await store.putBucketInventory(bucket, {
...inventory,
id: 'test_field_is_one'
});
console.log('333', inventory);
assert(true);
} catch (err) {
assert.fail(err);
Expand Down

0 comments on commit 80cf2e9

Please sign in to comment.