#30336 closed defect (bug) (fixed)
microtime returning a string causes false test failures
Reported by: | jorbin | Owned by: | jorbin |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | |
Focuses: | Cc: |
Description
One of the assertions inside test_get_pages_cache (and possibly elsewhere) is that when deleting a post, the last_changed time in the posts cache is greater then it was before deleting it. The problem is that we are comparing microtime strings.
So you end up with things like:
Failed asserting that '0.01805200 1415892888' is greater than '0.99591600 1415892887'.
The problem is that it should be comparing 1415892888.018052 and 1415892887.995916 which would cause the test to pass.
Change History (5)
Note: See
TracTickets for help on using
tickets.
In 30337: