mirror of https://github.com/apache/lucene.git
Merge remote-tracking branch 'origin/master' into gradle-master
This commit is contained in:
commit
f5f1f8fad7
|
@ -981,7 +981,7 @@ public class TestPackedInts extends LuceneTestCase {
|
||||||
|
|
||||||
for (int i = 0; i < arr.length; ++i) {
|
for (int i = 0; i < arr.length; ++i) {
|
||||||
buf.add(arr[i]);
|
buf.add(arr[i]);
|
||||||
if (rarely()) {
|
if (rarely() && !TEST_NIGHTLY) {
|
||||||
final long expectedBytesUsed = RamUsageTester.sizeOf(buf);
|
final long expectedBytesUsed = RamUsageTester.sizeOf(buf);
|
||||||
final long computedBytesUsed = buf.ramBytesUsed();
|
final long computedBytesUsed = buf.ramBytesUsed();
|
||||||
assertEquals(expectedBytesUsed, computedBytesUsed);
|
assertEquals(expectedBytesUsed, computedBytesUsed);
|
||||||
|
|
Loading…
Reference in New Issue