From bfb6c1386eefc85fc12f1dac2b101f150915d009 Mon Sep 17 00:00:00 2001 From: Sourabh Jain Date: Wed, 17 Aug 2022 00:53:35 +0530 Subject: [PATCH] fix refrence --- .../ClientTelemetryTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/ClientTelemetryTests.cs b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/ClientTelemetryTests.cs index c313f5358c..8ce2aa9327 100644 --- a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/ClientTelemetryTests.cs +++ b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/ClientTelemetryTests.cs @@ -936,7 +936,7 @@ private static void AssertAccountLevelInformation( Assert.IsNull(telemetryInfo.AcceleratedNetworking); Assert.IsNotNull(telemetryInfo.ClientId); Assert.IsNotNull(telemetryInfo.ProcessId); - Assert.AreEqual(CosmosUtils.ComputeHash(System.Diagnostics.Process.GetCurrentProcess().ProcessName), telemetryInfo.ProcessId); + Assert.AreEqual(HashingExtension.ComputeHash(System.Diagnostics.Process.GetCurrentProcess().ProcessName), telemetryInfo.ProcessId); Assert.IsNotNull(telemetryInfo.UserAgent); Assert.IsNotNull(telemetryInfo.ConnectionMode); @@ -950,11 +950,11 @@ private static void AssertAccountLevelInformation( { if (isAzureInstance.Value) { - Assert.AreEqual($"{VmMetadataApiHandler.HashedVmIdPrefix}{CosmosUtils.ComputeHash("d0cb93eb-214b-4c2b-bd3d-cc93e90d9efd")}", machineId.First(), $"Generated Machine id is : {machineId.First()}"); + Assert.AreEqual($"{VmMetadataApiHandler.HashedVmIdPrefix}{HashingExtension.ComputeHash("d0cb93eb-214b-4c2b-bd3d-cc93e90d9efd")}", machineId.First(), $"Generated Machine id is : {machineId.First()}"); } else { - Assert.AreNotEqual($"{VmMetadataApiHandler.HashedVmIdPrefix}{CosmosUtils.ComputeHash("d0cb93eb-214b-4c2b-bd3d-cc93e90d9efd")}", machineId.First(), $"Generated Machine id is : {machineId.First()}"); + Assert.AreNotEqual($"{VmMetadataApiHandler.HashedVmIdPrefix}{HashingExtension.ComputeHash("d0cb93eb-214b-4c2b-bd3d-cc93e90d9efd")}", machineId.First(), $"Generated Machine id is : {machineId.First()}"); Assert.AreEqual(1, machineId.Count, $"Multiple Machine Id has been generated i.e {JsonConvert.SerializeObject(machineId)}"); } }