From: Aaron Schulz Date: Fri, 20 Nov 2015 22:21:31 +0000 (-0800) Subject: Fudge testGetWithSeveralCheckKeys() in both directions to be deterministic X-Git-Tag: 1.31.0-rc.0~8925^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/?a=commitdiff_plain;h=545ffd2d4c16656e1ce9943fe3993e7a822a1b66;p=lhc%2Fweb%2Fwiklou.git Fudge testGetWithSeveralCheckKeys() in both directions to be deterministic Change-Id: I0f25cbd4555033f492b1b5d4ab55669240f19fc8 --- diff --git a/tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php b/tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php index b301f284b0..90b4bd01f7 100644 --- a/tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php +++ b/tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php @@ -461,7 +461,7 @@ class WANObjectCacheTest extends MediaWikiTestCase { $curTTL = null; $v = $this->cache->get( $key, $curTTL, array( $tKey1, $tKey2 ) ); $this->assertEquals( $value, $v, "Value matches" ); - $this->assertLessThan( -5, $curTTL, "Correct CTL" ); + $this->assertLessThan( -4.9, $curTTL, "Correct CTL" ); $this->assertGreaterThan( -5.1, $curTTL, "Correct CTL" ); }