Skip to content

Commit 22d414b

Browse files
authored
Skip huge decompression test with leak detection (#15616)
Motivation: The `AbstractIntegrationTest#testHugeDecompress` test in `codec-compress` runs incredibly slowly when leak detection is enabled, taking multiple hours when it normally takes just a few minutes with leak detection disabled. Modification: Disable this test when the resource leak detector is enabled. Result: Our leak detecting builds no longer time out.
1 parent 77661e7 commit 22d414b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

codec-compression/src/test/java/io/netty/handler/codec/compression/AbstractIntegrationTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import io.netty.util.ReferenceCountUtil;
2727
import io.netty.util.internal.EmptyArrays;
2828
import org.junit.jupiter.api.Test;
29+
import org.junit.jupiter.api.condition.DisabledIf;
2930

3031
import java.util.Arrays;
3132
import java.util.Random;
@@ -184,6 +185,7 @@ protected void testIdentity(final byte[] data, boolean heapBuffer) {
184185
}
185186
}
186187

188+
@DisabledIf("io.netty.util.ResourceLeakDetector#isEnabled")
187189
@Test
188190
public void testHugeDecompress() {
189191
int chunkSize = 1024 * 1024;

0 commit comments

Comments
 (0)