Skip to content

Commit 9f56459

Browse files
committed
redirect unused registry stderr output to null
1 parent f315dae commit 9f56459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Describe 'registry config whatif tests' {
151151
"_exist": false
152152
}
153153
'@
154-
$result = registry config set -w --input $whatif_delete_value | ConvertFrom-Json
154+
$result = registry config set -w --input $whatif_delete_value 2>$null | ConvertFrom-Json
155155
$LASTEXITCODE | Should -Be 0
156156
$result.keyPath | Should -Be 'HKCU\1\2\3'
157157
$result.valueName | Should -Be 'Hello'
@@ -172,7 +172,7 @@ Describe 'registry config whatif tests' {
172172
"_exist": false
173173
}
174174
'@
175-
$result = registry config set -w --input $whatif_delete_key | ConvertFrom-Json
175+
$result = registry config set -w --input $whatif_delete_key 2>$null | ConvertFrom-Json
176176
$LASTEXITCODE | Should -Be 0
177177
$result.keyPath | Should -Be 'HKCU\1\2\3'
178178
$result._metadata.whatIf | Should -Match "Would delete subkey '3'"

0 commit comments

Comments
 (0)