Skip to content

Commit c9cf843

Browse files
authored
Fix a test issue that causes tests to be skipped in Travis CI run (PowerShell#4891)
1 parent 93dc591 commit c9cf843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/powershell/Modules/Microsoft.PowerShell.Security/ConstrainedLanguageRestriction.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ if ($IsWindows)
113113

114114
try
115115
{
116-
$defaultParamValues = $PSDefaultParameterValues
116+
$defaultParamValues = $PSDefaultParameterValues.Clone()
117117
$PSDefaultParameterValues["it:Skip"] = !$IsWindows
118118

119119
Describe "Built-ins work within constrained language" -Tags 'Feature','RequireAdminOnWindows' {

0 commit comments

Comments
 (0)