[wp-trac] [WordPress Trac] #42263: Remove seconds from test_get_gmt_from_date_string_date()
WordPress Trac
noreply at wordpress.org
Wed Oct 18 19:28:25 UTC 2017
#42263: Remove seconds from test_get_gmt_from_date_string_date()
------------------------------+-----------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9
Component: Build/Test Tools | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------
`test_get_gmt_from_date_string_date()` causes occasional random failures
if a second has passed between `strtotime( 'now' )` and
`get_gmt_from_date()` calls:
{{{
1) Tests_Formatting_Date::test_get_gmt_from_date_string_date
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'2017-10-18 18:18:12'
+'2017-10-18 18:18:13'
}}}
I'd suggest removing seconds from this test, as it doesn't need that kind
of precision, it just needs to make sure the timezone is correct.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42263>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list