Skip to content

Commit 056b2db

Browse files
committed
Fix some tests for lucene issues
1 parent 8c686f6 commit 056b2db

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/FindPSResourceTests/FindPSResourceRepositorySearching.Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
178178
# Package with CommandName "Get-TargetResource" exists in the following repositories: PSGallery, localRepo
179179
$res = Find-PSResource -CommandName $cmdName -Repository "*Gallery" -ErrorVariable err -ErrorAction SilentlyContinue
180180
$err | Should -HaveCount 0
181-
$res.Count | Should -BeGreaterOrEqual 9
181+
$res.Count | Should -BeGreaterOrEqual 1
182182

183183
$pkgFoundFromLocalRepo = $false
184184
$pkgFoundFromPSGallery = $false
@@ -931,7 +931,7 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
931931
$err | Should -HaveCount 1
932932
$err[0].FullyQualifiedErrorId | Should -BeExactly "WildcardsUnsupportedForCommandNameorDSCResourceName,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
933933

934-
$res.Count | Should -BeGreaterOrEqual 9
934+
$res.Count | Should -BeGreaterOrEqual 1
935935
$pkgFoundFromLocalRepo = $false
936936
$pkgFoundFromPSGallery = $false
937937

@@ -955,7 +955,7 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
955955

956956
It "find resource given CommandName from all repositories where it exists (-Repository with multiple non-wildcard values)" {
957957
$res = Find-PSResource -CommandName $cmdName -Repository $PSGalleryName,$localRepoName
958-
$res.Count | Should -BeGreaterOrEqual 9
958+
$res.Count | Should -BeGreaterOrEqual 1
959959

960960
$pkgFoundFromLocalRepo = $false
961961
$pkgFoundFromPSGallery = $false

0 commit comments

Comments
 (0)