Skip to content

Commit 68d5d46

Browse files
committed
Increase tolerance in IsAdjacent function to 3 seconds.
1 parent d23a2cf commit 68d5d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/image.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function ExitCodeIs ([Parameter(ValueFromPipeline)]$Unused, [int]$ExpectedValue,
114114
}
115115

116116
# Asserts that the difference between two DateTime values are under a given tolerance.
117-
function IsAdjacent ([Parameter(ValueFromPipeline)][datetime]$InputValue, [datetime]$ExpectedValue, [timespan]$Tolerance=[timespan]::FromSeconds(1), [string]$ErrorMessage) {
117+
function IsAdjacent ([Parameter(ValueFromPipeline)][datetime]$InputValue, [datetime]$ExpectedValue, [timespan]$Tolerance=[timespan]::FromSeconds(3), [string]$ErrorMessage) {
118118
process { }
119119
end {
120120
$difference = $InputValue - $ExpectedValue

0 commit comments

Comments
 (0)