From f31c4177364bd101ccbf5e337faa673574366419 Mon Sep 17 00:00:00 2001 From: Hector Hernandez <39923391+hectorhdzg@users.noreply.github.com> Date: Fri, 11 Aug 2023 11:07:19 -0700 Subject: [PATCH] [Azure Monitor] OpenTelemetry Distro fix issue with tests reliability (#26792) ### Packages impacted by this PR @azure/monitor-opentelemetry --- .../internal/unit/metrics/performanceCounters.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/performanceCounters.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/performanceCounters.test.ts index 3aa04ac4d23e..4348f09f99f0 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/performanceCounters.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/performanceCounters.test.ts @@ -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}` ); });