8000 Update AppVeyor comments in Implicit.Remoting.Tests.ps1 by RDIL · Pull Request #9020 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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" {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -2053,7 +2053,6 @@ try
}

AfterAll {

if ($skipTest) { return }

if ($session -ne $null) { Remove-PSSession -Session $session -ErrorAction SilentlyContinue }
Expand Down
0