File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
packages/core/src/test/shared/telemetry Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments