Skip to content

Commit

Permalink
fix new test for pwsh 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
santisq committed Jun 24, 2024
1 parent 144999c commit 8fe77ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/PSParallelPipeline.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ Describe PSParallelPipeline {
$ps = [powershell]::Create([RunspaceMode]::NewRunspace).
AddScript('0..10 | Invoke-Parallel { Start-Sleep 1; $_ }')
$async = $ps.BeginInvoke()
Start-Sleep 1

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

while (-not $async.AsyncWaitHandle.WaitOne(200)) { }
$timer.Stop()
$timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(1.5))
$timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(1))
}
finally {
$ps.Dispose()
Expand Down

0 comments on commit 8fe77ca

Please sign in to comment.