Jeroen De Dauw has submitted this change and it was merged.

Change subject: do not exceed max int size by 1
......................................................................


do not exceed max int size by 1

Change-Id: I5f2c2d086600930acdc7b4f0226681c6b3c46d7b
---
M tests/phpunit/includes/storage/sqlstore/PropertyStatisticsTableTest.php
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Jeroen De Dauw: Verified; Looks good to me, approved



diff --git 
a/tests/phpunit/includes/storage/sqlstore/PropertyStatisticsTableTest.php 
b/tests/phpunit/includes/storage/sqlstore/PropertyStatisticsTableTest.php
index 57b63c2..83f1769 100644
--- a/tests/phpunit/includes/storage/sqlstore/PropertyStatisticsTableTest.php
+++ b/tests/phpunit/includes/storage/sqlstore/PropertyStatisticsTableTest.php
@@ -62,7 +62,7 @@
                        $usageCounts[] = array( $propId, mt_rand( 0, 100000 ) );
                }
 
-               $usageCounts[] = array( 9001, pow( 2 , 31 ) );
+               $usageCounts[] = array( 9001, pow( 2 , 31 ) - 1 );
 
                return $usageCounts;
        }
@@ -123,7 +123,7 @@
                        1 => 42,
                        2 => 0,
                        9001 => 9001,
-                       9002 => pow( 2 , 31 ),
+                       9002 => pow( 2 , 31 ) - 1,
                        9003 => 1,
                );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/51673
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5f2c2d086600930acdc7b4f0226681c6b3c46d7b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticMediaWiki
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Mwjames <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to