Change API to match cmdlet which is more reliable in AzDevOpsPipelines Windows (#8003)

Change API to match cmdlet which is more reliable in AzDevOpsPipelines Windows (#8003)

# Conflicts:
#	test/powershell/Modules/Microsoft.PowerShell.Management/Test-Connection.Tests.ps1
This commit is contained in:
Travis Plunk
2018-11-05 23:30:02 +00:00
parent b26805d365
commit 68557bce6a
@@ -157,7 +157,7 @@ Describe "Test-Connection" -tags "CI" {
It "ResolveDestination for address" {
$result = Test-Connection $targetAddress -ResolveDestination -Count 1
$resolvedName = [System.Net.DNS]::GetHostByName($targetName).HostName
$resolvedName = [System.Net.DNS]::GetHostEntry($targetAddress).HostName
$result.Destination | Should -BeExactly $resolvedName
$result.Replies[0].Address | Should -BeExactly $targetAddress