We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04ce513 commit 57430efCopy full SHA for 57430ef
tests/PSParallelPipeline.tests.ps1
@@ -150,6 +150,18 @@ Describe PSParallelPipeline {
150
} | Should -Throw -ExceptionType ([TimeoutException])
151
$timer.Stop()
152
$timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(2.2))
153
+ $timer.Restart()
154
+ {
155
+ $invokeParallelSplat = @{
156
+ ThrottleLimit = 5
157
+ TimeOutSeconds = 1
158
+ ErrorAction = 'Stop'
159
+ ScriptBlock = { Start-Sleep 10 }
160
+ }
161
+ 1..100 | Invoke-Parallel @invokeParallelSplat
162
+ } | Should -Throw -ExceptionType ([TimeoutException])
163
+ $timer.Stop()
164
+ $timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(1.2))
165
}
166
167
0 commit comments