Enable two previously disabled Get-Process tests (#15845)

This commit is contained in:
Ilya 2021-08-27 09:53:27 +05:00 committed by GitHub
parent fde119e28b
commit 102ccffd14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,8 +70,7 @@ Describe "Get-Process" -Tags "CI" {
{ (Get-Process -Id $idleProcessPid).Name } | Should -Not -Throw
}
It "Test for process property = Name" -Pending {
# Bug in .Net 5.0 Preview4. See https://github.com/PowerShell/PowerShell/pull/12894
It "Test for process property = Name" {
(Get-Process -Id $PID).Name | Should -BeExactly "pwsh"
}
@ -129,8 +128,7 @@ Describe "Get-Process Formatting" -Tags "Feature" {
}
Describe "Process Parent property" -Tags "CI" {
It "Has Parent process property" -Pending {
# Bug in .Net 5.0 Preview4. See https://github.com/PowerShell/PowerShell/pull/12894
It "Has Parent process property" {
$powershellexe = (Get-Process -Id $PID).mainmodule.filename
& $powershellexe -noprofile -command '(Get-Process -Id $PID).Parent' | Should -Not -BeNullOrEmpty
}