mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
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:
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 {
|
||||
|
||||
Reference in New Issue
Block a user