From: Aaron Schulz Date: Fri, 14 Jun 2019 11:57:07 +0000 (+0100) Subject: Reduce HashRing test load to avoid several seconds of CPU X-Git-Tag: 1.34.0-rc.0~1391^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22brouteur%22%2C%28%24id_rubrique%20?a=commitdiff_plain;h=f18cb061c7dcb17673ba1b0b496f72998ef7ab82;p=lhc%2Fweb%2Fwiklou.git Reduce HashRing test load to avoid several seconds of CPU Bug: T225719 Change-Id: I358383e99d7950c4747b48583dc8faf00b3deeab --- diff --git a/tests/phpunit/includes/libs/HashRingTest.php b/tests/phpunit/includes/libs/HashRingTest.php index acaeb02558..4afe3b56d5 100644 --- a/tests/phpunit/includes/libs/HashRingTest.php +++ b/tests/phpunit/includes/libs/HashRingTest.php @@ -316,8 +316,8 @@ EOT; // Hash of known correct values from C code $this->assertEquals( - 'c69ac9eb7a8a630c0cded201cefeaace', - md5( $ketama_test( 1e5 ) ), + 'd1a4912a80e4654ec2e4e462c8b911c6', + md5( $ketama_test( 1e3 ) ), 'Ketama mode (large, MD5 check)' );