From c37a0c4a644e1e5e9c75cf46890796899532c145 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Fri, 4 Mar 2016 14:41:15 -0800 Subject: [PATCH] Increase New-TimeSpan difference to reduce errant failures --- test/powershell/New-TimeSpan.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/New-TimeSpan.Tests.ps1 b/test/powershell/New-TimeSpan.Tests.ps1 index 353e82077..2e6fa358b 100644 --- a/test/powershell/New-TimeSpan.Tests.ps1 +++ b/test/powershell/New-TimeSpan.Tests.ps1 @@ -34,13 +34,13 @@ Describe "New-TimeSpan" { } It "Should have matching output when using the Start switch vs piping from another cmdlet" { - # this file is guarenteed to exist + # this file is guaranteed to exist $inputObject = (Get-ChildItem $PSScriptRoot/New-TimeSpan.Tests.ps1) $inputParameter = New-TimeSpan -Start $inputObject.lastwritetime $pipedInput = $inputObject | New-TimeSpan $difference = [math]::Abs($inputParameter.Milliseconds - $pipedInput.Milliseconds) # The difference between commands should be minimal - $difference | Should BeLessThan 10 + $difference | Should BeLessThan 100 } }