Skip to content

Commit

Permalink
Somehow the sleep sleeps for 0.5 ms, cannot repro
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd committed Jun 13, 2024
1 parent b9aa65b commit 88854b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tst/functions/assert/Time/Should-BeSlowerThan.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Describe "Should-BeSlowerThan" {
It "Does not throw when actual is slower than expected" -ForEach @(
@{ Actual = { Start-Sleep -Milliseconds 10 }; Expected = "1ms" }
@{ Actual = { Start-Sleep -Milliseconds 100 }; Expected = "1ms" }
) {
$Actual | Should-BeSlowerThan -Expected $Expected
}
Expand Down

0 comments on commit 88854b0

Please sign in to comment.