File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/powershell/Language/Scripting Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -384,18 +384,18 @@ Describe 'ActionPreference.Break tests' -Tag 'CI' {
384
384
Write-Debug - Message ' This is a debug message'
385
385
Write-Information - MessageData ' This is an information message'
386
386
Write-Progress - Activity ' This shows progress'
387
+ Write-Progress - Activity ' This shows progress' - Completed
387
388
}
388
389
Test-Break - WarningAction Break - InformationAction Break * > $null
389
390
$WarningPreference = $VerbosePreference = $DebugPreference = $InformationPreference = $ProgressPreference = [System.Management.Automation.ActionPreference ]::Break
390
391
Test-Break * > $null
391
392
}
392
-
393
393
$results = @ (Test-Debugger - Scriptblock $testScript )
394
394
}
395
395
396
- It ' Should show 7 debugger commands were invoked' {
396
+ It ' Should show 8 debugger commands were invoked' {
397
397
# When no debugger commands are provided, 'c' is invoked every time a breakpoint is hit
398
- $results.Count | Should - Be 7
398
+ $results.Count | Should - Be 8
399
399
}
400
400
401
401
It ' Write-Warning should trigger a breakpoint from -WarningAction Break' {
You can’t perform that action at this time.
0 commit comments