Skip to content

Commit e12e181

Browse files
committed
more fixes
1 parent d6d9e43 commit e12e181

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dsc/tests/dsc_securitycontext.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Describe 'Tests for configuration security context metadata' {
2424
}
2525

2626
It 'Require non-admin' {
27-
$out = dsc config get -f $PSScriptRoot/../examples/require_nonadmin.yaml
27+
$out = dsc config get -f $PSScriptRoot/../examples/require_nonadmin.yaml 2>$null
2828
if ($isAdmin) {
2929
$LASTEXITCODE | Should -Be 2
3030
}

dsc/tests/dsc_set.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Describe 'resource set tests' {
7373
"_exist": false
7474
}
7575
'@
76-
$null = registry config set --input $json
76+
$null = registry config set --input $json 2>$null
7777
}
7878
}
7979

registry/tests/registry.config.whatif.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Describe 'registry config whatif tests' {
1616
"keyPath": "HKCU\\1\\2\\3"
1717
}
1818
'@
19-
registry config set -w --input $json 2>$null | Write-Host
19+
$null = registry config set -w --input $json 2>$null
2020
$get_before = registry config get --input $json 2>$null
2121
$result = registry config set -w --input $json 2>$null | ConvertFrom-Json
2222
$LASTEXITCODE | Should -Be 0

0 commit comments

Comments
 (0)