Skip to content

Commit

Permalink
Fix test error in InternalCardinalityTests#testEqualsAndHashcode (#62542
Browse files Browse the repository at this point in the history
)

Make sure the the new HLL++ is different to the original one
  • Loading branch information
iverase authored Sep 17, 2020
1 parent 69afc6e commit 9e5da6e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ protected InternalCardinality mutateInstance(InternalCardinality instance) {
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);
Expand Down

0 comments on commit 9e5da6e

Please sign in to comment.