Skip to content

Commit

Permalink
Merge pull request #13829 from eileenmcnaughton/revert
Browse files Browse the repository at this point in the history
[nfc] Attempt to improve false negatives on Logging test
  • Loading branch information
eileenmcnaughton authored Mar 15, 2019
2 parents 5a52625 + 12f2d01 commit 60defb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/phpunit/api/v3/LoggingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ public function testRevert() {
public function testRevertNoDate() {
$contactId = $this->individualCreate();
$this->callAPISuccess('Setting', 'create', array('logging' => TRUE));
// Pause for one second here to ensure the timestamps between the first create action
// and the second differ.
sleep(1);
CRM_Core_DAO::executeQuery("SET @uniqueID = 'Wot woot'");
$this->callAPISuccess('Contact', 'create', array(
'id' => $contactId,
Expand Down

0 comments on commit 60defb3

Please sign in to comment.