File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ Describe 'Test Find-PSResource for local repositories' -tags 'CI' {
150150 # Package $testModuleName version 4.0.0 does not exist
151151 # previously if Find-PSResource -Version against local repo did not find that package's version it kept looking at
152152 # similar named packages and would fault. This test is to ensure only the specified package and its version is checked
153- $res = Find-PSResource - Name $testModuleName - Version " 4.0.0" - Repository $localRepo
153+ $res = Find-PSResource - Name $testModuleName - Version " 4.0.0" - Repository $localRepo - ErrorVariable err - ErrorAction SilentlyContinue
154154 $res | Should - BeNullOrEmpty
155155 $err.Count | Should -Not - Be 0
156156 $err [0 ].FullyQualifiedErrorId | Should - BeExactly " PackageNotFound,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
You can’t perform that action at this time.
0 commit comments