From c236f70c9c559d72f3c65c831563c9e15944fbc9 Mon Sep 17 00:00:00 2001 From: Hyun Oh Date: Sat, 11 Nov 2023 09:54:48 +0900 Subject: [PATCH] chore: check droppedAttributesCount value in test case --- experimental/packages/sdk-logs/test/common/LogRecord.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/experimental/packages/sdk-logs/test/common/LogRecord.test.ts b/experimental/packages/sdk-logs/test/common/LogRecord.test.ts index 678b4c2e726..5a0acaa6db2 100644 --- a/experimental/packages/sdk-logs/test/common/LogRecord.test.ts +++ b/experimental/packages/sdk-logs/test/common/LogRecord.test.ts @@ -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); }); });