diff --git a/handler/src/test/java/io/netty/handler/ssl/OpenSslPrivateKeyMethodTest.java b/handler/src/test/java/io/netty/handler/ssl/OpenSslPrivateKeyMethodTest.java index 1a7b49f6c2..813a67adc3 100644 --- a/handler/src/test/java/io/netty/handler/ssl/OpenSslPrivateKeyMethodTest.java +++ b/handler/src/test/java/io/netty/handler/ssl/OpenSslPrivateKeyMethodTest.java @@ -106,9 +106,11 @@ public class OpenSslPrivateKeyMethodTest { @AfterClass public static void destroy() { - GROUP.shutdownGracefully(); - CERT.delete(); - EXECUTOR.shutdown(); + if (OpenSsl.isBoringSSL()) { + GROUP.shutdownGracefully(); + CERT.delete(); + EXECUTOR.shutdown(); + } } private final boolean delegate;