Skip to content

Commit 7848a3b

Browse files
committed
update test
1 parent 69c45a4 commit 7848a3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/test/lib/metrics/internal.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,12 @@ describe('_INTERNAL_captureMetric', () => {
249249
const scope = new Scope();
250250
scope.setClient(client);
251251

252-
// Fill the buffer to max size (100 is the MAX_METRIC_BUFFER_SIZE constant)
253-
for (let i = 0; i < 100; i++) {
252+
// Fill the buffer to max size (1000 is the MAX_METRIC_BUFFER_SIZE constant)
253+
for (let i = 0; i < 1000; i++) {
254254
_INTERNAL_captureMetric({ type: 'counter', name: `metric.${i}`, value: i }, { scope });
255255
}
256256

257-
expect(_INTERNAL_getMetricBuffer(client)).toHaveLength(100);
257+
expect(_INTERNAL_getMetricBuffer(client)).toHaveLength(1000);
258258

259259
// Add one more to trigger flush
260260
_INTERNAL_captureMetric({ type: 'counter', name: 'trigger.flush', value: 999 }, { scope });

0 commit comments

Comments
 (0)