Increase New-TimeSpan difference to reduce errant failures

This commit is contained in:
Andrew Schwartzmeyer committed 2016-03-04 14:41:33 -08:00
1 parent 579287c53d
commit c37a0c4a64
1 file changed
+2 -2
+2 -2
View File
@@ -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
}
}