Skip to content

Commit ae17eca

Browse files
committed
fix these damned tests
1 parent d971160 commit ae17eca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/PSParallelPipeline.tests.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Describe PSParallelPipeline {
152152
1..100 | Invoke-Parallel @invokeParallelSplat
153153
} | Should -Throw -ExceptionType ([TimeoutException])
154154
$timer.Stop()
155-
$timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(3))
155+
$timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(4))
156156
$timer.Restart()
157157
{
158158
$invokeParallelSplat = @{
@@ -164,7 +164,7 @@ Describe PSParallelPipeline {
164164
1..1000000 | Invoke-Parallel @invokeParallelSplat
165165
} | Should -Throw -ExceptionType ([TimeoutException])
166166
$timer.Stop()
167-
$timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(1.2))
167+
$timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(2))
168168
}
169169
}
170170
}
@@ -309,15 +309,15 @@ Describe PSParallelPipeline {
309309
Assert-RunspaceCount {
310310
Measure-Command { & $testOne | Should -HaveCount 5 } |
311311
ForEach-Object TotalSeconds |
312-
Should -BeLessThan 3
312+
Should -BeLessThan 4
313313

314314
Measure-Command { & $testTwo | Should -HaveCount 10 } |
315315
ForEach-Object TotalSeconds |
316-
Should -BeLessThan 6
316+
Should -BeLessThan 7
317317

318318
Measure-Command { & $testThree | Should -HaveCount 10 } |
319319
ForEach-Object TotalSeconds |
320-
Should -BeLessThan 3
320+
Should -BeLessThan 4
321321
}
322322
}
323323

@@ -361,7 +361,7 @@ Describe PSParallelPipeline {
361361
$ps.Stop()
362362
while (-not $task.AsyncWaitHandle.WaitOne(200)) { }
363363
$timer.Stop()
364-
$timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(4))
364+
$timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(5))
365365

366366
if ($ps.HadErrors) {
367367
$ps.Streams.Error | Write-Host -ForegroundColor Red

0 commit comments

Comments
 (0)