From 207a414ebac266b5616c91546c1f9cbc08ffede1 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 18 Jul 2016 09:49:54 +1200 Subject: [PATCH] Test fix for intermittant fail. The scheduled reminder test fails 'quite a bit', intermittently. The set up is designed to run '1 hour before' the start_date but since the start date is measured in days not hours this is mostly about trying to cope with timezones & stuff. Trying to adjust the test to be based on day rather than an hour to try to make the test more consistent. This does not affect the thing the test is intended to test --- tests/phpunit/api/v3/JobTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/api/v3/JobTest.php b/tests/phpunit/api/v3/JobTest.php index 770ece7d8c..fe4f3a0871 100644 --- a/tests/phpunit/api/v3/JobTest.php +++ b/tests/phpunit/api/v3/JobTest.php @@ -248,7 +248,7 @@ class api_v3_JobTest extends CiviUnitTestCase { 'contact_id' => $contactID, 'membership_type_id' => $membershipTypeID, 'join_date' => 'now', - 'start_date' => '+ 1 hour', + 'start_date' => '+ 1 day', ) ); } @@ -259,9 +259,9 @@ class api_v3_JobTest extends CiviUnitTestCase { 'entity_value' => $membershipTypeID, 'mapping_id' => 4, 'start_action_date' => 'membership_start_date', - 'start_action_offset' => 0, + 'start_action_offset' => 1, 'start_action_condition' => 'before', - 'start_action_unit' => 'hour', + 'start_action_unit' => 'day', 'group_id' => $groupID, 'limit_to' => TRUE, )); -- 2.25.1