Skip to content

Commit aa764dd

Browse files
iSazonovdaxian-dbw
authored andcommitted
Small typo in archive cmdlets tests (PowerShell#3121)
* Small typo in archive cmdlets tests * Add -ErrorAction SilentlyContinue
1 parent 39c44b4 commit aa764dd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

test/powershell/Modules/Microsoft.PowerShell.Archive/Pester.Commands.Cmdlets.Archive.Tests.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ Describe "Test suite for Microsoft.PowerShell.Archive module" -Tags "CI" {
1212
}
1313
BeforeAll {
1414
# remove the archive module forcefully, to be sure we get the correct version
15-
if ( Get-Module Microsoft.PowerShell.Archive. ) {
16-
Remove-Module Microsoft.PowerShell.Archive -force
17-
}
15+
Remove-Module Microsoft.PowerShell.Archive -Force -ErrorAction SilentlyContinue
16+
1817
# Version comparisons should use a System.Version rather than SemanticVersion
1918
$PSVersion = $PSVersionTable.PSVersion -as [Version]
2019
# Write-Progress not supported yet on Core

0 commit comments

Comments
 (0)