mirror of https://github.com/apache/lucene.git
Don't invoke RamUsageTester.sizeOf(buf) over and over on nightly tests.
This commit is contained in:
parent
7d0cf0df32
commit
2150f9ccc3
|
@ -981,7 +981,7 @@ public class TestPackedInts extends LuceneTestCase {
|
|||
|
||||
for (int i = 0; i < arr.length; ++i) {
|
||||
buf.add(arr[i]);
|
||||
if (rarely()) {
|
||||
if (rarely() && !TEST_NIGHTLY) {
|
||||
final long expectedBytesUsed = RamUsageTester.sizeOf(buf);
|
||||
final long computedBytesUsed = buf.ramBytesUsed();
|
||||
assertEquals(expectedBytesUsed, computedBytesUsed);
|
||||
|
|
Loading…
Reference in New Issue