Use time forcing methods to avoid WANObjectCacheTest flakeiness
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 27 Nov 2017 18:51:32 +0000 (10:51 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 28 Nov 2017 06:50:44 +0000 (06:50 +0000)
commit300c65537711b10d4765bbe20f7add01307cd188
treee1f04733b0bb96eb523c2cf0fbb79881dd7f5ea1
parent8d6a9af090b09a1321b6d84389a9beac4fc139a7
Use time forcing methods to avoid WANObjectCacheTest flakeiness

Use of microtime() is now just for baselines, and it is no longer
assumed to be increasing with each call. Such an assumption is
particuliarly bad on Windows.

I've done 100X run rounds with now failures on Windows.

Change-Id: Ica2a47982495bc95b10ca507414972744ea9507e
includes/libs/objectcache/WANObjectCache.php
tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php