wiki.techinc.nl/tests/phpunit/includes/libs/objectcache
Tim Starling 29e33aa50a Fix random WANObjectCacheTest failures
We're observing WANObjectCacheTest fail sometimes, possibly due to a
1/825 chance of a cache key being counted as "popular" combined with an
mt_srand() call making this more likely. I tweaked the options to
getWithSetCallback() to avoid the affected mt_rand() call altogether.

I also added a lowTTL option to another getWithSetCallback() call,
eliminating a condition with a 3% chance. It didn't appear to matter
which branch the test took, but I'd rather avoid non-deterministic
behaviour.

There are a few remaining coin tosses being logged, but they all occur
with a chance of less than 10^-5.

Bug: T238197
Change-Id: Iadd3dc00d44b8490210fec97fe1f49236326300f
2019-11-20 05:00:48 +00:00
..
BagOStuffTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
CachedBagOStuffTest.php tests: Replace PHPUnit's loose assertEquals(false) with assertFalse() 2019-10-04 00:30:36 +00:00
HashBagOStuffTest.php phpcs: Enable MediaWiki.Commenting.PhpunitAnnotations.ForbiddenExpectedException* and make pass 2019-10-14 12:48:48 -07:00
MultiWriteBagOStuffTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
WANObjectCacheTest.php Fix random WANObjectCacheTest failures 2019-11-20 05:00:48 +00:00