From 7fda986d2c1358e14166a237836baec2d9878a35 Mon Sep 17 00:00:00 2001 From: Chris Vest Date: Wed, 7 Apr 2021 17:43:51 +0200 Subject: [PATCH] Make CleanerTests faster by reducing iteration count --- src/test/java/io/netty/buffer/api/BufferTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/io/netty/buffer/api/BufferTest.java b/src/test/java/io/netty/buffer/api/BufferTest.java index ee4a591..47393d2 100644 --- a/src/test/java/io/netty/buffer/api/BufferTest.java +++ b/src/test/java/io/netty/buffer/api/BufferTest.java @@ -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);