objectcache: avoid occasional test flakiness due to microtime()
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 5 Feb 2019 05:35:42 +0000 (21:35 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 5 Feb 2019 05:35:42 +0000 (21:35 -0800)
commite4930d255b691e54aac5c7d89a90a740af34dd19
treec3ef3efe05f95d053e3b338a9ef03b635f90c2fe
parentcc41493d64689a83d9cdac0943983ac15b68aa74
objectcache: avoid occasional test flakiness due to microtime()

* Fix the timestamps to static hard-coded values
* Force the timestamps before various get/set tests so they do not
  use the microtime() value either.
* Remove the direct and duplicated (causing further risk) microtime()
  calls from testGetWithSeveralCheckKeys().

Bug: T207247
Change-Id: Id30a8127f11501dbe54e075b6e9d18490353f4a5
tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php