[wp-trac] [WordPress Trac] #38381: Race conditions in Tests_Date_I18n

WordPress Trac noreply at wordpress.org
Fri Oct 21 23:58:30 UTC 2016


#38381: Race conditions in Tests_Date_I18n
------------------------------+-------------------------
 Reporter:  pento             |       Owner:  swissspidy
     Type:  defect (bug)      |      Status:  assigned
 Priority:  low               |   Milestone:  4.7
Component:  Build/Test Tools  |     Version:
 Severity:  minor             |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+-------------------------

Comment (by pento):

 To ensure consistent behaviour, the best option would be to get the output
 of `time()` at the start of each test, then pass it to the `date()` and
 `date_i18n()` calls, to ensure they're both generating from the same
 timestamp.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38381#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list