Skip to content

Commit

Permalink
giving a bit of wait time to Assert-RunspaceCount
Browse files Browse the repository at this point in the history
  • Loading branch information
santisq committed Jun 26, 2024
1 parent 3036c4b commit 4d08cad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion tests/PSParallelPipeline.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ Describe PSParallelPipeline {
} | Should -Throw -ExceptionType ([TimeoutException])
$timer.Stop()
$timer.Elapsed | Should -BeLessOrEqual ([timespan]::FromSeconds(2.2))
Start-Sleep 5
}
}
}
Expand Down
1 change: 1 addition & 0 deletions tests/common.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function Assert-RunspaceCount {
& $ScriptBlock
}
finally {
Start-Sleep 5
Get-Runspace |
Should -HaveCount $count -Because 'Runspaces should be correctly disposed'
}
Expand Down

0 comments on commit 4d08cad

Please sign in to comment.