From fb02fd76a61c808fe7c46e3788a9abdd69a2594d Mon Sep 17 00:00:00 2001 From: JumpingYang001 Date: Mon, 16 May 2016 20:17:41 -0700 Subject: [PATCH] Update ErrorAction from SilentlyContinue to Ignore for remove-item in Update-TypeData Pester test --- test/powershell/Update-TypeData.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/Update-TypeData.Tests.ps1 b/test/powershell/Update-TypeData.Tests.ps1 index eb30c0e29..f243b76d2 100644 --- a/test/powershell/Update-TypeData.Tests.ps1 +++ b/test/powershell/Update-TypeData.Tests.ps1 @@ -55,7 +55,7 @@ Describe "Update-TypeData basic functionality" -Tags DRT{ finally { Remove-TypeData -Path $testfile - Remove-Item $testfile -Force + Remove-Item $testfile -ErrorAction Ignore } } @@ -327,7 +327,7 @@ Describe "Update-TypeData basic functionality" -Tags DRT{ finally { Remove-TypeData -Path $testfile - Remove-Item $testfile -ErrorAction SilentlyContinue + Remove-Item $testfile -ErrorAction Ignore } } } \ No newline at end of file