Skip to content

Commit f820b34

Browse files
committed
tweaking few tests
1 parent a9e2967 commit f820b34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PSParallelPipeline.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ Describe PSParallelPipeline {
159159
ThrottleLimit = 5
160160
TimeOutSeconds = 1
161161
ErrorAction = 'Stop'
162-
ScriptBlock = { Start-Sleep 10 }
162+
ScriptBlock = { $_; Start-Sleep 10 }
163163
}
164-
1..100 | Invoke-Parallel @invokeParallelSplat
164+
1..100000 | Invoke-Parallel @invokeParallelSplat
165165
} | Should -Throw -ExceptionType ([TimeoutException])
166166
$timer.Stop()
167167
$timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(1.2))

0 commit comments

Comments
 (0)