We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 144999c commit 8fe77caCopy full SHA for 8fe77ca
tests/PSParallelPipeline.tests.ps1
@@ -244,7 +244,6 @@ Describe PSParallelPipeline {
244
$ps = [powershell]::Create([RunspaceMode]::NewRunspace).
245
AddScript('0..10 | Invoke-Parallel { Start-Sleep 1; $_ }')
246
$async = $ps.BeginInvoke()
247
- Start-Sleep 1
248
249
if ($IsCoreCLR) {
250
$async = $ps.BeginStop($ps.EndStop, $null)
@@ -255,7 +254,7 @@ Describe PSParallelPipeline {
255
254
256
while (-not $async.AsyncWaitHandle.WaitOne(200)) { }
257
$timer.Stop()
258
- $timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(1.5))
+ $timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(1))
259
}
260
finally {
261
$ps.Dispose()
0 commit comments