diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Implicit.Remoting.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Implicit.Remoting.Tests.ps1 index 30de9778a91..dca7b063dc3 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Implicit.Remoting.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Implicit.Remoting.Tests.ps1 @@ -1,8 +1,7 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. -# # Skip all tests on non-windows and non-PowerShellCore and non-elevated platforms. -# + $originalDefaultParameterValues = $PSDefaultParameterValues.Clone() $originalWarningPreference = $WarningPreference $WarningPreference = "SilentlyContinue" @@ -160,7 +159,7 @@ try } finally { if ($null -ne $module) { Remove-Module $module -Force -ErrorAction SilentlyContinue } } - } + } } Describe "Import-PSSession Cmdlet error handling" -tags "Feature","RequireAdminOnWindows" { @@ -383,7 +382,7 @@ try } ## It requires 'New-PSSession' to work with implicit credential to allow proxied command to create new session. - ## Implicit credential doesn't work in AppVeyor builder, so mark all tests here '-pending'. + ## Implicit credential doesn't work in the Azure DevOps builder, so mark all tests here '-pending'. Context "Proxy module should create a new session" { BeforeAll { @@ -1945,7 +1944,8 @@ try } ## It requires 'New-PSSession' to work with implicit credential to allow proxied command to create new session. - ## Implicit credential doesn't work in AppVeyor builder, so mark this test '-pending'. + ## Implicit credential doesn't work in the Windows Azure DevOps builder, so mark this test '-pending'. + ## Also, this feature doesn't work on macOS or Linux It "Should have a new session when the disconnected session cannot be re-connected" -Pending { ## Disconnect session and make it un-connectable. Disconnect-PSSession $session @@ -2053,7 +2053,6 @@ try } AfterAll { - if ($skipTest) { return } if ($session -ne $null) { Remove-PSSession -Session $session -ErrorAction SilentlyContinue }