Adding a slightly bigger window to 'Start-Sleep' test. (#4049)
This commit is contained in:
parent
06dfe41e7d
commit
3543498ee3
1 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ Describe "Start-Sleep DRT Unit Tests" -Tags "CI" {
|
||||||
Start-Sleep -Seconds 1
|
Start-Sleep -Seconds 1
|
||||||
$watch.Stop()
|
$watch.Stop()
|
||||||
$watch.ElapsedMilliseconds | Should BeGreaterThan 950
|
$watch.ElapsedMilliseconds | Should BeGreaterThan 950
|
||||||
$watch.ElapsedMilliseconds | Should BeLessThan 1050
|
$watch.ElapsedMilliseconds | Should BeLessThan 1100
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Should work properly when sleeping with Milliseconds" {
|
It "Should work properly when sleeping with Milliseconds" {
|
||||||
|
@ -17,7 +17,7 @@ Describe "Start-Sleep DRT Unit Tests" -Tags "CI" {
|
||||||
Start-Sleep -Milliseconds 1000
|
Start-Sleep -Milliseconds 1000
|
||||||
$watch.Stop()
|
$watch.Stop()
|
||||||
$watch.ElapsedMilliseconds | Should BeGreaterThan 950
|
$watch.ElapsedMilliseconds | Should BeGreaterThan 950
|
||||||
$watch.ElapsedMilliseconds | Should BeLessThan 1050
|
$watch.ElapsedMilliseconds | Should BeLessThan 1100
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Should work properly when sleeping with ms alias" {
|
It "Should work properly when sleeping with ms alias" {
|
||||||
|
@ -25,7 +25,7 @@ Describe "Start-Sleep DRT Unit Tests" -Tags "CI" {
|
||||||
Start-Sleep -ms 1000
|
Start-Sleep -ms 1000
|
||||||
$watch.Stop()
|
$watch.Stop()
|
||||||
$watch.ElapsedMilliseconds | Should BeGreaterThan 950
|
$watch.ElapsedMilliseconds | Should BeGreaterThan 950
|
||||||
$watch.ElapsedMilliseconds | Should BeLessThan 1050
|
$watch.ElapsedMilliseconds | Should BeLessThan 1100
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue