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 581f35cecb..81a030a057 100644 --- a/handler/src/test/java/io/netty/handler/ssl/OpenSslPrivateKeyMethodTest.java +++ b/handler/src/test/java/io/netty/handler/ssl/OpenSslPrivateKeyMethodTest.java @@ -107,9 +107,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;