[wp-trac] [WordPress Trac] #45821: Date Related Travis Failures

WordPress Trac noreply at wordpress.org
Mon Jan 17 13:48:00 UTC 2022


#45821: Date Related Travis Failures
------------------------------+-----------------------------
 Reporter:  desrosj           |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.3
Component:  Build/Test Tools  |     Version:
 Severity:  minor             |  Resolution:  fixed
 Keywords:                    |     Focuses:
------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 In [changeset:"52587" 52587]:
 {{{
 #!CommitTicketReference repository="" revision="52587"
 Date/Time: Fix race conditions in `current_time()` tests.

 * Restore default timezone before performing assertions to avoid affecting
 other tests in case of failure.
 * Use delta comparison for timestamps to avoid race conditions.

 Props SergeyBiryukov, desrosj.
 Merges [45857] to the 5.1 branch.
 Fixes #45821.
 }}}

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


More information about the wp-trac mailing list