Skip to content

Commit f1391d3

Browse files
committed
Fix error variable
1 parent 6bfdd25 commit f1391d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Engine/RuleSuppression.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function MyFunc
192192
'@
193193

194194
$diagnostics = Invoke-ScriptAnalyzer -ScriptDefinition $script -IncludeRule 'PSAvoidUsingPlainTextForPassword' -ErrorVariable diagErr -ErrorAction SilentlyContinue
195-
$suppressions = Invoke-ScriptAnalyzer -ScriptDefinition $script -SuppressedOnly -IncludeRule 'PSAvoidUsingPlainTextForPassword' -ErrorAction SilentlyContinue
195+
$suppressions = Invoke-ScriptAnalyzer -ScriptDefinition $script -SuppressedOnly -IncludeRule 'PSAvoidUsingPlainTextForPassword' -ErrorVariable suppErr -ErrorAction SilentlyContinue
196196

197197
$diagnostics | Should -HaveCount 2
198198
$diagnostics[0].RuleName | Should -BeExactly "PSAvoidUsingPlainTextForPassword"

0 commit comments

Comments
 (0)