Skip to content

Commit 3228973

Browse files
author
Daniel Sinn
committed
Adjust grace period for failing unit test
The Travis build can update rows with a timestamp that's behind `time()`.
1 parent a6cb204 commit 3228973

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Command/UpDownCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public function testDownOnly()
226226

227227
$currentTime = time();
228228
$validDates = array();
229-
foreach (range(0, 1) as $i) {
229+
foreach (range(-1, 1) as $i) {
230230
$validDates[] = date('Y-m-d H:i:s', $currentTime + $i);
231231
}
232232
$dateRegex = '(' . implode('|', $validDates) . ') *';

0 commit comments

Comments
 (0)