From 8fe77ca0bf68db06bb4af58315e7ea5ab2d55463 Mon Sep 17 00:00:00 2001 From: Santiago Squarzon Date: Mon, 24 Jun 2024 00:06:44 -0300 Subject: [PATCH] fix new test for pwsh 5.1 --- tests/PSParallelPipeline.tests.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/PSParallelPipeline.tests.ps1 b/tests/PSParallelPipeline.tests.ps1 index 659fd07..3501b41 100644 --- a/tests/PSParallelPipeline.tests.ps1 +++ b/tests/PSParallelPipeline.tests.ps1 @@ -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) @@ -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()