From eeb92da5c7a92fb0559661fa37b07cc361a56ebd Mon Sep 17 00:00:00 2001 From: Bryce Milton Date: Wed, 4 May 2016 17:10:16 -0700 Subject: [PATCH] removing debug code --- test/powershell/Clear-EventLog.Tests.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/powershell/Clear-EventLog.Tests.ps1 b/test/powershell/Clear-EventLog.Tests.ps1 index 2d63e4f7fd..014b3126a7 100644 --- a/test/powershell/Clear-EventLog.Tests.ps1 +++ b/test/powershell/Clear-EventLog.Tests.ps1 @@ -21,9 +21,11 @@ if ($IsWindows) { It "should throw 'The Log name 'MissingTestLog' does not exist' when asked to clear a log that does not exist" -Pending:($True -Or $NonWinAdmin) { Remove-EventLog -LogName MissingTestLog -ea Ignore try {Clear-EventLog -LogName MissingTestLog -ea stop; Throw "Previous statement unexpectedly succeeded..." + } catch {$_.FullyQualifiedErrorId | Should Be "Microsoft.PowerShell.Commands.ClearEventLogCommand"} } It "should throw 'System.InvalidOperationException' when asked to clear a log that does not exist" -Pending:($True -Or $NonWinAdmin) { try {Clear-EventLog -LogName MissingTestLog -ea stop; Throw "Previous statement unexpectedly succeeded..." + } catch {$_.FullyQualifiedErrorId | Should Be "Microsoft.PowerShell.Commands.ClearEventLogCommand"} } } } \ No newline at end of file