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 7d0cf0df32
commit 2150f9ccc3
1 changed files with 1 additions and 1 deletions

View File

@ -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);