Skip to content

Commit

Permalink
fix refrence
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabh1007 committed Aug 16, 2022
1 parent 173b4c4 commit bfb6c13
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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)}");
}
}
Expand Down

0 comments on commit bfb6c13

Please sign in to comment.