[TEST] fix histogram test when extended bounds overlaps data

Closes #19221
This commit is contained in:
Colin Goodheart-Smithe 2016-07-05 09:01:08 +01:00
parent cbbc8790a5
commit 84efaf4579

View File

@ -858,7 +858,7 @@ public class HistogramTests extends ESIntegTestCase {
// constructing the newly expected bucket list
int bucketsCount = (int) ((boundsMaxKey - boundsMinKey) / interval) + 1;
long[] extendedValueCounts = new long[bucketsCount];
long[] extendedValueCounts = new long[valueCounts.length + addedBucketsLeft + addedBucketsRight];
System.arraycopy(valueCounts, 0, extendedValueCounts, addedBucketsLeft, valueCounts.length);
SearchResponse response = null;