Skip to content

Commit

Permalink
Attempted test fix
Browse files Browse the repository at this point in the history
This revert test has started failing frequently. It's possible the reason is performance
Improvements, resulting ineffectively no change in time between the entries.

I's also possible the issue is with the timestamp being used but I think that has
a permitted variance

Change-Id: Ieb8b50fd4dce22277ea760a490a9134bd15af5e1
  • Loading branch information
eileenmcnaughton committed Mar 8, 2019
1 parent 7aa9abe commit cb3a530
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/phpunit/api/v3/LoggingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ protected function createLegacyStyleContactLogTable() {
public function testRevert() {
$contactId = $this->individualCreate();
$this->callAPISuccess('Setting', 'create', array('logging' => TRUE));
sleep(1);
CRM_Core_DAO::executeQuery("SET @uniqueID = 'woot'");
$timeStamp = date('Y-m-d H:i:s');
$this->callAPISuccess('Contact', 'create', array(
Expand Down

0 comments on commit cb3a530

Please sign in to comment.