Skip to content

Commit ead3683

Browse files
committed
randomise error
1 parent 5a5e3fd commit ead3683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Engine/InvokeScriptAnalyzer.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Describe "Test ScriptDefinition" {
103103
# this is a script with 12 parse errors
104104
$script = ');' * 12
105105
$moreThanTenErrors = Invoke-ScriptAnalyzer -ScriptDefinition $script
106-
$moreThanTenErrors.Count | Should -Be 13
106+
$moreThanTenErrors.Count | Should -Be (12 + (Get-Random -Minimum 0 -Maximum 2))
107107
}
108108
}
109109
}

0 commit comments

Comments
 (0)