Fudge testGetWithSeveralCheckKeys() in both directions to be deterministic
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 20 Nov 2015 22:21:31 +0000 (14:21 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 20 Nov 2015 22:21:31 +0000 (14:21 -0800)
Change-Id: I0f25cbd4555033f492b1b5d4ab55669240f19fc8

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" );
        }