Skip to content

Commit 8affd55

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
fix test to look at wmi result and not osinfo
1 parent f9c66eb commit 8affd55

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

wmi-adapter/Tests/wmi.tests.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ Describe 'WMI adapter resource tests' {
5252
$LASTEXITCODE | Should -Be 0
5353
$r | Should -Not -BeNullOrEmpty
5454
$res = $r | ConvertFrom-Json
55-
$res.results[0].result.actualState[0].Name | Should -Not -BeNullOrEmpty
56-
$res.results[0].result.actualState[0].BootupState | Should -BeNullOrEmpty
57-
$res.results[0].result.actualState[1].Caption | Should -Not -BeNullOrEmpty
58-
$res.results[0].result.actualState[1].BuildNumber | Should -BeNullOrEmpty
59-
$res.results[0].result.actualState[4].AdapterType | Should -BeLike "Ethernet*"
55+
$res.results[1].result.actualState[0].Name | Should -Not -BeNullOrEmpty
56+
$res.results[1].result.actualState[0].BootupState | Should -BeNullOrEmpty
57+
$res.results[1].result.actualState[1].Caption | Should -Not -BeNullOrEmpty
58+
$res.results[1].result.actualState[1].BuildNumber | Should -BeNullOrEmpty
59+
$res.results[1].result.actualState[4].AdapterType | Should -BeLike "Ethernet*"
6060
}
6161
}

0 commit comments

Comments
 (0)