Fix test error in InternalCardinalityTests#testEqualsAndHashcode (#62542) (#62554)

Make sure the the new HLL++ is different to the original one
This commit is contained in:
Ignacio Vera 2020-09-17 17:09:13 +02:00 committed by GitHub
parent 3081b3827b
commit 901000891a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -99,9 +99,7 @@ public class InternalCardinalityTests extends InternalAggregationTestCase<Intern
case 1:
HyperLogLogPlusPlus newState = new HyperLogLogPlusPlus(state.precision(),
new MockBigArrays(new MockPageCacheRecycler(Settings.EMPTY), new NoneCircuitBreakerService()), 0);
newState.merge(0, state, 0);
int extraValues = between(10, 100);
for (int i = 0; i < extraValues; i++) {
for (int i = 0; i < 10; i++) {
newState.collect(0, BitMixer.mix64(randomIntBetween(500, 10000)));
}
algos.add(newState);