From c9cf8433028014c6fb778e100492575c925a1d41 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Thu, 21 Sep 2017 11:54:48 -0700 Subject: [PATCH] Fix a test issue that causes tests to be skipped in Travis CI run (#4891) --- .../ConstrainedLanguageRestriction.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Security/ConstrainedLanguageRestriction.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Security/ConstrainedLanguageRestriction.Tests.ps1 index bf13c8f2aa..e28019fc60 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Security/ConstrainedLanguageRestriction.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Security/ConstrainedLanguageRestriction.Tests.ps1 @@ -113,7 +113,7 @@ if ($IsWindows) try { - $defaultParamValues = $PSDefaultParameterValues + $defaultParamValues = $PSDefaultParameterValues.Clone() $PSDefaultParameterValues["it:Skip"] = !$IsWindows Describe "Built-ins work within constrained language" -Tags 'Feature','RequireAdminOnWindows' {