Skip to content

Commit ce37358

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
fix tests
1 parent db9530e commit ce37358

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

powershell-adapter/Tests/win_powershellgroup.tests.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ resources:
179179

180180
$out = dsc -l debug config set -i $yaml 2> "$testdrive/error.log" | ConvertFrom-Json
181181
$LASTEXITCODE | Should -Be 0 -Because (Get-Content -Path "$testdrive/error.log" -Raw | Out-String)
182-
$out.results[0].result.afterState.Credential | Should -BeNullOrEmpty
183182
}
184183

185184
It 'Config does not work when credential properties are missing required fields' {

reboot_pending/tests/reboot_pending.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ Describe 'reboot_pending resource tests' -Skip:(!$IsWindows -or !$isElevated) {
3838
It 'reboot_pending should have a reason' {
3939
$out = dsc resource get -r Microsoft.Windows/RebootPending | ConvertFrom-Json
4040
$LASTEXITCODE | Should -Be 0
41-
$out.actualState.reason.count | Should -BeGreaterThan 0 -Because ($out | Out-String)
41+
$out.actualState.reason.count | Should -BeGreaterThan 0 -Because ($out | ConvertTo-Json -Depth 10 |Out-String)
4242
}
4343
}

0 commit comments

Comments
 (0)