Skip to content

Commit 0ea1fd2

Browse files
committed
Fix integ test
1 parent ab66036 commit 0ea1fd2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/Integration/Commands/Get-SqlDscInstalledInstance.Integration.Tests.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ Describe 'Get-SqlDscInstalledInstance' {
3232
It 'Should return an array of objects' {
3333
$result = Get-SqlDscInstalledInstance
3434

35-
$result | Should -BeGreaterOrEqual 1
35+
<#
36+
Casting to array to ensure we get the count on Windows PowerShell
37+
when there is only one instance.
38+
#>
39+
@($result).Count | Should -BeGreaterOrEqual 1
3640
}
3741
}
3842

0 commit comments

Comments
 (0)