diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-10-20 06:11:35 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-10-20 06:11:35 +0400 |
commit | d6a86e8cb9bace90376bce2878ff2877c80f336a (patch) | |
tree | ed32db13dbe481a5ac7e6d189396f665ffd5917e /tests | |
parent | 81e3628243cf20e3b44c03f3a715b7feed8e737f (diff) |
Maybe this could help the random midnight test failure?
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/PHPUnit/System/PeriodIsRangeDateIsLastNMetadataAndNormalAPITest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PHPUnit/System/PeriodIsRangeDateIsLastNMetadataAndNormalAPITest.php b/tests/PHPUnit/System/PeriodIsRangeDateIsLastNMetadataAndNormalAPITest.php index e38c680f30..8c4ec84d98 100755 --- a/tests/PHPUnit/System/PeriodIsRangeDateIsLastNMetadataAndNormalAPITest.php +++ b/tests/PHPUnit/System/PeriodIsRangeDateIsLastNMetadataAndNormalAPITest.php @@ -23,7 +23,7 @@ class PeriodIsRangeDateIsLastNMetadataAndNormalAPITest extends SystemTestCase public static function setUpBeforeClass() { - self::$fixture->dateTime = Date::factory('today')->getDateTime(); + self::$fixture->dateTime = Date::factory('yesterday')->getDateTime(); parent::setUpBeforeClass(); } @@ -70,7 +70,7 @@ class PeriodIsRangeDateIsLastNMetadataAndNormalAPITest extends SystemTestCase $result[] = array($apiToCall, array('idSite' => $idSite, 'date' => $date, 'periods' => array('range'), 'segment' => $segment, 'otherRequestParameters' => array( - 'lastMinutes' => 60 * 24, + 'lastMinutes' => 60 * 24 * 2, 'visitorId' => $visitorId // testing getLastVisitsForVisitor requires a visitor ID ))); } |