Don't invoke RamUsageTester.sizeOf(buf) over and over on nightly tests.

This commit is contained in:
Dawid Weiss 2020-01-03 13:46:58 +01:00
parent 22386a1f12
commit e862f8e248
1 changed files with 1 additions and 1 deletions

View File

@ -1026,7 +1026,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);