Fix MessagecacheTest::testLoadFromDB_fetchLatestRevision
authordaniel <dkinzler@wikimedia.org>
Mon, 25 Mar 2019 10:47:53 +0000 (11:47 +0100)
committerDaniel Kinzler <dkinzler@wikimedia.org>
Mon, 25 Mar 2019 11:37:30 +0000 (11:37 +0000)
commit3620931e69afa4619f9cdaf2965b30d867bac63c
tree7d340be4031e1dd8d3d784b4b3dc98e6a0dcb2bf
parentfe4f92335fa732ad1583707e9fbf60b6326a0948
Fix MessagecacheTest::testLoadFromDB_fetchLatestRevision

This re-enables the "flaky" testLoadFromDB_fetchLatestRevision which
was disabled because it failed on random patches for no apparent
reason, as documented in T219042.

The reason was an invalid timestamp in the test data, which caused
the timestamp to default to "now", which was "sometimes" newer than
the timestamp of the revision immediately created before.

Bug: T219042
Bug: T218918
Change-Id: I38f4816b2dc735a7698626c7e3fe4a93ec95a9d1
tests/phpunit/includes/cache/MessageCacheTest.php