Merge "Stop test from randomly failing"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 26 Mar 2018 17:25:13 +0000 (17:25 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 26 Mar 2018 17:25:13 +0000 (17:25 +0000)
tests/phpunit/includes/api/ApiBlockTest.php

index c0cf87e..c456e9a 100644 (file)
@@ -207,7 +207,7 @@ class ApiBlockTest extends ApiTestCase {
                );
 
                // Allow flakiness up to one second
-               $this->assertLessThan( 1,
+               $this->assertLessThanOrEqual( 1,
                        abs( wfTimestamp( TS_UNIX, $expiry ) - ( time() + 86400 ) ) );
        }