mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Stop ongoing progress-bar in Write-Progress test (#17880)
This commit is contained in:
@@ -24,6 +24,8 @@ Describe "Write-Progress DRT Unit Tests" -Tags "CI" {
|
||||
}
|
||||
|
||||
It 'Activity longer than console width works' {
|
||||
{ Write-Progress -Activity ('a' * ([console]::WindowWidth + 1)) -Status ('b' * ([console]::WindowWidth + 1)) -Id 1 } | Should -Not -Throw
|
||||
$activity = 'a' * ([console]::WindowWidth + 1)
|
||||
{ Write-Progress -Activity $activity -Status ('b' * ([console]::WindowWidth + 1)) -Id 1 } | Should -Not -Throw
|
||||
Write-Progress -Activity $activity -Id 1 -Completed
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user