From 3543498ee353f46244ec15e0133b95bae5ae7cb5 Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Tue, 20 Jun 2017 09:49:49 -0700 Subject: [PATCH] Adding a slightly bigger window to 'Start-Sleep' test. (#4049) --- .../Microsoft.PowerShell.Utility/Start-Sleep.Tests.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Start-Sleep.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Start-Sleep.Tests.ps1 index a67eaaa86..8ead15e5e 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Start-Sleep.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Start-Sleep.Tests.ps1 @@ -9,7 +9,7 @@ Describe "Start-Sleep DRT Unit Tests" -Tags "CI" { Start-Sleep -Seconds 1 $watch.Stop() $watch.ElapsedMilliseconds | Should BeGreaterThan 950 - $watch.ElapsedMilliseconds | Should BeLessThan 1050 + $watch.ElapsedMilliseconds | Should BeLessThan 1100 } It "Should work properly when sleeping with Milliseconds" { @@ -17,7 +17,7 @@ Describe "Start-Sleep DRT Unit Tests" -Tags "CI" { Start-Sleep -Milliseconds 1000 $watch.Stop() $watch.ElapsedMilliseconds | Should BeGreaterThan 950 - $watch.ElapsedMilliseconds | Should BeLessThan 1050 + $watch.ElapsedMilliseconds | Should BeLessThan 1100 } 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 $watch.Stop() $watch.ElapsedMilliseconds | Should BeGreaterThan 950 - $watch.ElapsedMilliseconds | Should BeLessThan 1050 + $watch.ElapsedMilliseconds | Should BeLessThan 1100 } }