Skip to content

Commit

Permalink
[Azure Monitor] OpenTelemetry Distro fix issue with tests reliability (
Browse files Browse the repository at this point in the history
…#26792)

### Packages impacted by this PR
@azure/monitor-opentelemetry
  • Loading branch information
hectorhdzg committed Aug 11, 2023
1 parent fd53412 commit f31c417
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,16 @@ describe("PerformanceCounterMetricsHandler", () => {
assert.ok(metrics[3].dataPoints[0].value > 0, "Wrong available bytes value");
assert.deepStrictEqual(metrics[4].descriptor.name, "\\Processor(_Total)\\% Processor Time");
assert.ok(
metrics[4].dataPoints[0].value > 0 && metrics[4].dataPoints[0].value <= 100,
"Wrong Processor Time value"
metrics[4].dataPoints[0].value >= 0 && metrics[4].dataPoints[0].value <= 100,
`Wrong Processor Time value: ${metrics[4].dataPoints[0].value}`
);
assert.deepStrictEqual(
metrics[5].descriptor.name,
"\\Process(??APP_WIN32_PROC??)\\% Processor Time"
);
assert.ok(
metrics[5].dataPoints[0].value > 0 && metrics[5].dataPoints[0].value <= 100,
"Wrong Process Time value"
metrics[5].dataPoints[0].value >= 0 && metrics[5].dataPoints[0].value <= 100,
`Wrong Process Time value: ${metrics[5].dataPoints[0].value}`
);
});

Expand Down

0 comments on commit f31c417

Please sign in to comment.