diff --git a/handler/src/test/java/io/netty/handler/ssl/SslErrorTest.java b/handler/src/test/java/io/netty/handler/ssl/SslErrorTest.java index 87e4919eb6..011d56bdc0 100644 --- a/handler/src/test/java/io/netty/handler/ssl/SslErrorTest.java +++ b/handler/src/test/java/io/netty/handler/ssl/SslErrorTest.java @@ -58,6 +58,7 @@ import java.util.Collection; import java.util.Collections; import java.util.Date; import java.util.List; +import java.util.Locale; @RunWith(Parameterized.class) @@ -238,7 +239,7 @@ public class SslErrorTest { // at the moment as there are no different exceptions for the different alerts. private static void verifyException(Throwable cause, String messagePart, Promise promise) { String message = cause.getMessage(); - if (message.contains(messagePart)) { + if (message.toLowerCase(Locale.UK).contains(messagePart.toLowerCase(Locale.UK))) { promise.setSuccess(null); } else { promise.setFailure(new AssertionError("message not contains '" + messagePart + "': " + message));