mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Test fixes for stabilizing tests (#19068)
This commit is contained in:
@@ -4,7 +4,7 @@ Describe "Remote module tests" -Tags 'Feature','RequireAdminOnWindows' {
|
||||
|
||||
BeforeAll {
|
||||
|
||||
if (!$IsWindows)
|
||||
if (!$IsWindows -or (Test-IsWinWow64))
|
||||
{
|
||||
$originalDefaultParameterValues = $PSDefaultParameterValues.Clone()
|
||||
$PSDefaultParameterValues["it:skip"] = $true
|
||||
|
||||
@@ -5,7 +5,7 @@ Describe "Remote import-module tests" -Tags 'Feature','RequireAdminOnWindows' {
|
||||
BeforeAll {
|
||||
$originalDefaultParameterValues = $PSDefaultParameterValues.Clone()
|
||||
$modulePath = "$testdrive\Modules\TestImport"
|
||||
if (!$IsWindows) {
|
||||
if (!$IsWindows -or (Test-IsWinWow64)) {
|
||||
$PSDefaultParameterValues["it:skip"] = $true
|
||||
} else {
|
||||
$pssession = New-RemoteSession
|
||||
|
||||
Reference in New Issue
Block a user