mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Increase New-TimeSpan difference to reduce errant failures
This commit is contained in:
1 parent
579287c53d
commit
c37a0c4a64
1 file changed
+2
-2
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user