Skip to content

Commit fcba615

Browse files
committed
Set unit test to have res.Count greater than or equal to 1
1 parent 375e90d commit fcba615

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/FindPSResourceTests/FindPSResourceRepositorySearching.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
128128

129129
It "find multiple resources from all repositories where it exists where package Name contains wildcard (without -Repository specified)" {
130130
$res = Find-PSResource -Name "test_module*" -ErrorVariable err -ErrorAction SilentlyContinue
131-
$res | Should -HaveCount 11
131+
$res.Count | Should -BeGreaterOrEqual 1
132132
$err | Should -HaveCount 0
133133

134134
$pkgFoundinLocalRepo = $false

0 commit comments

Comments
 (0)