Make CleanerTests faster by reducing iteration count

This commit is contained in:
Chris Vest 2021-04-07 17:43:51 +02:00
parent 987a398700
commit 7fda986d2c

View File

@ -1678,7 +1678,7 @@ public class BufferTest {
var initial = NativeMemorySegmentManager.MEM_USAGE_NATIVE.sum();
var allocator = fixture.createAllocator();
allocator.close();
int iterations = 50;
int iterations = 15;
int allocationSize = 1024;
for (int i = 0; i < iterations; i++) {
allocateAndForget(allocator, allocationSize);
@ -1700,7 +1700,7 @@ public class BufferTest {
throws InterruptedException {
var initial = NativeMemorySegmentManager.MEM_USAGE_NATIVE.sum();
try (var allocator = fixture.createAllocator()) {
int iterations = 50;
int iterations = 15;
int allocationSize = 1024;
for (int i = 0; i < iterations; i++) {
allocateAndForget(allocator, allocationSize);