[wp-trac] [WordPress Trac] #49485: Make Travis CI builds pass for all supported branches

WordPress Trac noreply at wordpress.org
Sun Mar 22 14:43:59 UTC 2020


#49485: Make Travis CI builds pass for all supported branches
------------------------------+-----------------------------
 Reporter:  SergeyBiryukov    |       Owner:  SergeyBiryukov
     Type:  task (blessed)    |      Status:  closed
 Priority:  normal            |   Milestone:  5.4
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:                    |     Focuses:
------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 In [changeset:"47491" 47491]:
 {{{
 #!CommitTicketReference repository="" revision="47491"
 When asserting microtime output as a number, make it a number.

 microtime is by default a string. Doing a greater then or less than check
 of that string is a bad idea since it uses the first part (the micro part
 of microtime) rather then the actual time. This adds a helper to convert
 microtime output into a float which we can then use to properly compare
 the output of microtime.

 This fixes an intermittent test failure.

 Props jorbin.
 Merges [30337] to the 3.8 branch.
 See #30336, #49485.
 }}}

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


More information about the wp-trac mailing list