Update 'SSHConnectionInfo Class Tests' $skipTest expression to use collection semantics instead of relying on $null (which causes a type cast exception). (#7610)

This commit is contained in:
Dan Travison
2018-08-23 15:10:39 -07:00
committed by Travis Plunk
parent fb1353fec2
commit 23832e5e95
@@ -6,7 +6,7 @@ Describe "SSH Remoting API Tests" -Tags "Feature" {
BeforeAll {
## Skip the test if ssh is not present.
$skipTest = (Get-Command 'ssh' -CommandType Application -ErrorAction SilentlyContinue) -eq $null
$skipTest = @(Get-Command 'ssh' -CommandType Application -ErrorAction SilentlyContinue).Count -eq 0
}
AfterEach {