From ad524656bcc39c306cf74d41077b1d355bdf8e93 Mon Sep 17 00:00:00 2001 From: T'kael Date: Sun, 23 Jun 2024 19:53:24 -0700 Subject: [PATCH] Tidy unit tests --- Tests/TelemetryTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tests/TelemetryTests.cs b/Tests/TelemetryTests.cs index acc5543b63..b88d1dd8a7 100644 --- a/Tests/TelemetryTests.cs +++ b/Tests/TelemetryTests.cs @@ -3,6 +3,7 @@ using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; +using System.Threading.Tasks; using Utilities; namespace UnitTests @@ -13,8 +14,8 @@ public class TelemetryTests : TestBase private Dictionary PrepTelemetryData(object data) { var privateType = new PrivateType(typeof(Logging)); - var result = (Dictionary)privateType.InvokeStatic("PrepareData", JToken.FromObject(data) ); - return result; + var result = (Task>)privateType.InvokeStatic("PrepareData", JToken.FromObject(data) ); + return result.Result; } [TestMethod]