Jeroen De Dauw has uploaded a new change for review. https://gerrit.wikimedia.org/r/51673
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(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticMediaWiki refs/changes/73/51673/1 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: newchange Gerrit-Change-Id: I5f2c2d086600930acdc7b4f0226681c6b3c46d7b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SemanticMediaWiki Gerrit-Branch: master Gerrit-Owner: Jeroen De Dauw <jeroended...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits