Skip to content

Commit

Permalink
chore: check droppedAttributesCount value in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunnoH committed Nov 11, 2023
1 parent 12a13f1 commit c236f70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion experimental/packages/sdk-logs/test/common/LogRecord.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,14 @@ describe('LogRecord', () => {
}

it('should remove / drop all remaining values after the number of values exceeds this limit', () => {
const { attributes } = logRecord;
const { attributes, droppedAttributesCount } = logRecord;
assert.strictEqual(Object.keys(attributes).length, 100);
assert.strictEqual(attributes.foo0, 'bar0');
assert.deepStrictEqual(attributes.foo98, { bar: 'bar98' });
assert.strictEqual(attributes.foo147, undefined);
assert.strictEqual(attributes.foo148, undefined);
assert.strictEqual(attributes.foo149, undefined);
assert.strictEqual(droppedAttributesCount, 50);
});
});

Expand Down

0 comments on commit c236f70

Please sign in to comment.