diff --git a/test/powershell/Modules/Microsoft.PowerShell.Core/Enter-PSHostProcess.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Core/Enter-PSHostProcess.Tests.ps1 index 75d96ac886d..13413bfb4bf 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Core/Enter-PSHostProcess.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Core/Enter-PSHostProcess.Tests.ps1 @@ -32,7 +32,7 @@ Describe "Enter-PSHostProcess tests" -Tag Feature { } } - It "Can enter and exit another PSHost" { + It "Can enter and exit another PSHost" -Pending:$true { Wait-UntilTrue { (Get-PSHostProcessInfo -Id $pwsh.Id) -ne $null } "Enter-PSHostProcess -Id $($pwsh.Id) -ErrorAction Stop @@ -48,7 +48,7 @@ Describe "Enter-PSHostProcess tests" -Tag Feature { Exit-PSHostProcess" | pwsh -c - | Should -Be $powershell.Id } - It "Can enter using NamedPipeConnectionInfo" { + It "Can enter using NamedPipeConnectionInfo" -Pending:$true { try { $npInfo = [System.Management.Automation.Runspaces.NamedPipeConnectionInfo]::new($pwsh.Id) $rs = [runspacefactory]::CreateRunspace($npInfo) @@ -92,7 +92,7 @@ Describe "Enter-PSHostProcess tests" -Tag Feature { $pwsh | Stop-Process } - It "Can enter using CustomPipeName" { + It "Can enter using CustomPipeName" -Pending:$true { Wait-UntilTrue { Test-Path $pipePath } "Enter-PSHostProcess -CustomPipeName $pipeName -ErrorAction Stop @@ -100,7 +100,7 @@ Describe "Enter-PSHostProcess tests" -Tag Feature { Exit-PSHostProcess" | pwsh -c - | Should -Be $pwsh.Id } - It "Can enter, exit, and re-enter using CustomPipeName" { + It "Can enter, exit, and re-enter using CustomPipeName" -Pending:$true { Wait-UntilTrue { Test-Path $pipePath } "Enter-PSHostProcess -CustomPipeName $pipeName -ErrorAction Stop