Skip to content

Commit 8f4fb64

Browse files
committed
test: remove duplicate test
1 parent 1b3cfc4 commit 8f4fb64

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

packages/core/src/test/shared/telemetry/util.test.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -376,22 +376,7 @@ describe('validateMetricEvent', function () {
376376
assertLogsContain('invalid Metric', false, 'warn')
377377
})
378378

379-
it('does not fail validation for metrics with missing fields when fatal=true', function () {
380-
const metricEvent: MetricDatum = {
381-
MetricName: 'invalid_metric_missing_fields',
382-
Value: 1,
383-
Unit: 'None',
384-
Metadata: [
385-
{ Key: 'result', Value: 'Succeeded' },
386-
{ Key: 'missingFields', Value: 'field1,field2' },
387-
],
388-
} as MetricDatum
389-
390-
validateMetricEvent(metricEvent, false)
391-
assertLogsContain('invalid Metric', false, 'warn')
392-
})
393-
394-
it('logs warning for metrics with missing fields when fatal=false', function () {
379+
it('does not fail validation for metrics with missing fields with fatal=true', function () {
395380
const metricEvent: MetricDatum = {
396381
MetricName: 'invalid_metric_missing_fields',
397382
Value: 1,

0 commit comments

Comments
 (0)