mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Update AppVeyor comments in Implicit.Remoting.Tests.ps1 (#9020)
This commit is contained in:
committed by
Travis Plunk
parent
a79ed1ef0f
commit
78f4ba5ec1
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user