From 20437afe0ec265f6aad8bcfc5f82de2075358dd6 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 4 Apr 2019 11:20:51 +1300 Subject: [PATCH] Test fix --- tests/phpunit/api/v3/LoggingTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phpunit/api/v3/LoggingTest.php b/tests/phpunit/api/v3/LoggingTest.php index 8fad24a084..23ff335dab 100644 --- a/tests/phpunit/api/v3/LoggingTest.php +++ b/tests/phpunit/api/v3/LoggingTest.php @@ -414,6 +414,8 @@ class api_v3_LoggingTest extends CiviUnitTestCase { $contactId = $this->individualCreate(); $this->callAPISuccess('Setting', 'create', array('logging' => TRUE)); CRM_Core_DAO::executeQuery("SET @uniqueID = 'wooty woot'"); + // Add delay so the update is actually enough after the create that the timestamps differ + sleep(1); $timeStamp = date('Y-m-d H:i:s'); $this->callAPISuccess('Contact', 'create', array( 'id' => $contactId, -- 2.25.1