Merge "Fudge testGetWithSeveralCheckKeys() in both directions to be deterministic"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 20 Nov 2015 22:54:22 +0000 (22:54 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 20 Nov 2015 22:54:22 +0000 (22:54 +0000)
tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php

index b301f28..90b4bd0 100644 (file)
@@ -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" );
        }