Fix Select-Object.Tests.ps1 which might fail for Unix OS. (#6747)
Fix Select-Object.Tests.ps1 which might fail for Unix OS. In the test, the processes which name matches i* are selected and it checks if there is non zero number of these processes. The test assumes that there is always at least one process, probably `init` - idle, but on Unix idle process does not have the name and hence the test might fail
This commit is contained in:
parent
1f9e9d243d
commit
bee98547e4
|
@ -225,8 +225,8 @@ Describe "Select-Object DRT basic functionality" -Tags "CI" {
|
|||
$results.Count | Should -Be 0
|
||||
}
|
||||
|
||||
It "Select-Object with Start-Time In Idle Process should work"{
|
||||
$results = Get-Process i* | Select-Object ProcessName
|
||||
It "Select-Object with Start-Time In Idle Process should work" {
|
||||
$results = Get-Process * | Select-Object ProcessName
|
||||
$results.Count | Should -Not -Be 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue