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.
Fixes #45821.
Built from https://develop.svn.wordpress.org/trunk@45857


git-svn-id: http://core.svn.wordpress.org/trunk@45668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-08-20 01:35:56 +00:00
parent 349e9f56c1
commit bdb1811935
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3-alpha-45856';
$wp_version = '5.3-alpha-45857';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.