Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PowerShell/PowerShell.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-08-19 01:14:39 +0300
committerGitHub <noreply@github.com>2022-08-19 01:14:39 +0300
commitff1d67980b043ef0655497b35a52380268a34cf9 (patch)
treec2a73e013d92e0ff6555be5a595fbd11a3c793cc
parent82ffcc4a7bda409674a20efeb000b4698da993ea (diff)
Complete ongoing `write-progress` (#17922)
-rw-r--r--test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Progress.Tests.ps14
1 files changed, 3 insertions, 1 deletions
diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Progress.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Progress.Tests.ps1
index 6e6c9ee57c..0f62cbcb6a 100644
--- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Progress.Tests.ps1
+++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Progress.Tests.ps1
@@ -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
}
}