[TEST] Fix rare OBOE in AbstractBytesReferenceTestCase

This commit is contained in:
Igor Motov 2016-07-05 16:40:03 -04:00
parent b3c015e2bb
commit 74af0e36f3
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public abstract class AbstractBytesReferenceTestCase extends ESTestCase {
for (int i = 0; i < probes; i++) {
int index = randomIntBetween(0, copy.length() - 1);
assertEquals(pbr.get(index), copy.get(index));
index = randomIntBetween(sliceOffset, sliceOffset + sliceLength);
index = randomIntBetween(sliceOffset, sliceOffset + sliceLength - 1);
assertEquals(pbr.get(index), slice.get(index - sliceOffset));
}
}