mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
minor logic change to Start-Sleep pester test
This commit is contained in:
@@ -3,12 +3,12 @@ Describe "Start-Sleep" {
|
||||
Context "Validate Start-Sleep works properly" {
|
||||
It "Should only sleep for at least 3 seconds"{
|
||||
$result = Measure-Command { Start-Sleep -s 3 }
|
||||
$result.Seconds | Should BeGreaterThan 3
|
||||
$result.Seconds | Should BeGreaterThan 2
|
||||
}
|
||||
|
||||
It "Should sleep for at least 3 seconds using the alias" {
|
||||
$result = Measure-Command { sleep -s 3 }
|
||||
$result.Seconds | Should BeGreaterThan 3
|
||||
$result.Seconds | Should BeGreaterThan 2
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user