Skip to content

Commit 8abea0b

Browse files
committed
enable NettyLeakDetectorExtension
1 parent 0997cdc commit 8abea0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/src/test/java/org/asynchttpclient/LargeResponseTest.java

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import com.sun.net.httpserver.HttpExchange;
1919
import com.sun.net.httpserver.HttpHandler;
2020
import com.sun.net.httpserver.HttpServer;
21+
import io.github.nettyplus.leakdetector.junit.NettyLeakDetectorExtension;
2122
import io.netty.handler.codec.http.HttpHeaders;
2223
import java.io.IOException;
2324
import java.io.OutputStream;
@@ -33,12 +34,14 @@
3334
import org.junit.jupiter.api.BeforeAll;
3435
import org.junit.jupiter.api.Test;
3536
import org.junit.jupiter.api.Timeout;
37+
import org.junit.jupiter.api.extension.ExtendWith;
3638
import org.slf4j.Logger;
3739
import org.slf4j.LoggerFactory;
3840

3941
import static org.junit.jupiter.api.Assertions.assertEquals;
4042

4143

44+
@ExtendWith(NettyLeakDetectorExtension.class)
4245
public class LargeResponseTest {
4346
private static Logger LOG = LoggerFactory.getLogger(LargeResponseTest.class);
4447
private static final int textSize = 200_000;

0 commit comments

Comments
 (0)