Test fix - test was relying on running slowly enough for the second to increment...
authoreileen <emcnaughton@wikimedia.org>
Wed, 13 Apr 2016 08:43:50 +0000 (20:43 +1200)
committerEileen <eileen@fuzion.co.nz>
Sat, 23 Apr 2016 03:51:16 +0000 (03:51 +0000)
tests/phpunit/api/v3/LoggingTest.php

index c563e3f7a9429091b6b70dbc158e8cf4a02e2f69..308622cc156fa15e6ceb588deb6abe566b702b53 100644 (file)
@@ -302,7 +302,7 @@ class api_v3_LoggingTest extends CiviUnitTestCase {
         'api.email.create' => array('email' => 'dopey@mail.com'))
     );
     $this->callAPISuccess('Setting', 'create', array('logging_all_tables_uniquid' => FALSE));
-    $this->callAPISuccess('Setting', 'create', array('logging_uniqueid_date' => date('Y-m-d H:i:s')));
+    $this->callAPISuccess('Setting', 'create', array('logging_uniqueid_date' => date('Y-m-d H:i:s', strtotime('+ 1 hour'))));
     $this->callAPIFailure(
       'Logging',
       'revert',