Skip to content

Commit 8fe77ca

Browse files
committed
fix new test for pwsh 5.1
1 parent 144999c commit 8fe77ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/PSParallelPipeline.tests.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ Describe PSParallelPipeline {
244244
$ps = [powershell]::Create([RunspaceMode]::NewRunspace).
245245
AddScript('0..10 | Invoke-Parallel { Start-Sleep 1; $_ }')
246246
$async = $ps.BeginInvoke()
247-
Start-Sleep 1
248247

249248
if ($IsCoreCLR) {
250249
$async = $ps.BeginStop($ps.EndStop, $null)
@@ -255,7 +254,7 @@ Describe PSParallelPipeline {
255254

256255
while (-not $async.AsyncWaitHandle.WaitOne(200)) { }
257256
$timer.Stop()
258-
$timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(1.5))
257+
$timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(1))
259258
}
260259
finally {
261260
$ps.Dispose()

0 commit comments

Comments
 (0)