Add delay in test to resolve concurrent changes
authoreileen <emcnaughton@wikimedia.org>
Wed, 22 Feb 2017 01:04:26 +0000 (14:04 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 22 Feb 2017 01:04:26 +0000 (14:04 +1300)
tests/phpunit/api/v3/LoggingTest.php

index 568cffcfffc9d6e17e1031683273d2c37f37d982..27ff65e00b3f5214c68c72a7792ea44ebddb6d76 100644 (file)
@@ -312,6 +312,7 @@ class api_v3_LoggingTest extends CiviUnitTestCase {
     $this->assertEquals('anthony_anderson@civicrm.org', $contact['email']);
     $this->assertEquals('27 Cool way', $contact['street_address']);
 
+    sleep(1);
     CRM_Core_DAO::executeQuery("SET @uniqueID = 'bitty bot bot'");
     $this->callAPISuccess('Contact', 'create', array(
         'id' => $contactId,