From: kkeirstead <85592574+kkeirstead@users.noreply.github.com> Date: Mon, 8 Jan 2024 20:20:27 +0000 (-0800) Subject: Update `ConsoleExporterTests` To Use Updated `RatePayload` (#4454) X-Git-Tag: accepted/tizen/unified/20241231.014852~40^2~243 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c8ecb4d48846cd79e25e6b000c068704c2bd5b0;p=platform%2Fcore%2Fdotnet%2Fdiagnostics.git Update `ConsoleExporterTests` To Use Updated `RatePayload` (#4454) It looks like #4324 hadn't run a build in a while, and was checked in without validating against the new tests in https://github.com/dotnet/diagnostics/pull/4376 (causing the builds in main to fail). I don't believe there are any other issues, but this should give us a fresh build to confirm that. --- diff --git a/src/tests/dotnet-counters/ConsoleExporterTests.cs b/src/tests/dotnet-counters/ConsoleExporterTests.cs index d2f1bf3d5..4fae98070 100644 --- a/src/tests/dotnet-counters/ConsoleExporterTests.cs +++ b/src/tests/dotnet-counters/ConsoleExporterTests.cs @@ -314,7 +314,7 @@ namespace DotnetCounters.UnitTests private static CounterPayload CreateMeterCounter(string meterName, string instrumentName, string unit, string tags, double value) { - return new RatePayload(meterName, instrumentName, instrumentName, unit, tags, value, 1, DateTime.MinValue); + return new RatePayload(new CounterMetadata(meterName, instrumentName, null, null, null), instrumentName, unit, tags, value, 1, DateTime.MinValue); } } }