User tests: Successful: Unsuccessful:
Pull Request for Issue # .
No issue.
From time to time tests fails but everything is OK.
The problem is in /tests/unit/suites/libraries/joomla/log/JLogEntryTest on line 28:
$tmp = new JLogEntry('Lorem ipsum dolor sit amet');
$date = JFactory::getDate('now');
When $tmp->date is "2016-02-22 19:00:01"
and $date is one second later "2016-02-22 19:00:02" then assertion fails.
Random fails.
I had situation when my pull request did not pass one php version tests.
When I used commit --amend and pushed force again then all tests passed.
Status | New | ⇒ | Pending |
Labels |
Added:
?
?
|
Ok, assertEquals
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-02-24 09:22:08 |
Closed_By | ⇒ | wilsonge |
Merged - thanks!
Milestone |
Added: |
Rather than use use the
$delta
parameter ofassertEquals
I think rather than this (https://github.com/sebastianbergmann/phpunit/blob/4.8/src/Framework/Assert.php#L503-L514)