From 6d4fbfc43dcd8b31697e3abc3b593e3928b84bcd Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Wed, 24 Jul 2019 09:34:25 +0200 Subject: [PATCH] Loosen expectation of TlsTcpWithHostnameVerificationSpec (#27394) (#27396) --- .../src/test/scala/akka/remote/artery/tcp/TlsTcpSpec.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/akka-remote/src/test/scala/akka/remote/artery/tcp/TlsTcpSpec.scala b/akka-remote/src/test/scala/akka/remote/artery/tcp/TlsTcpSpec.scala index d48f39932b..38118abde9 100644 --- a/akka-remote/src/test/scala/akka/remote/artery/tcp/TlsTcpSpec.scala +++ b/akka-remote/src/test/scala/akka/remote/artery/tcp/TlsTcpSpec.scala @@ -207,11 +207,14 @@ class TlsTcpWithHostnameVerificationSpec val rootB = RootActorPath(addressB) systemB.actorOf(TestActors.echoActorProps, "echo") + // The detailed warning message is either 'General SSLEngine problem' + // or 'No subject alternative names matching IP address 127.0.0.1 found' + // depending on JRE version. EventFilter .warning( pattern = "outbound connection to \\[akka://systemB@127.0.0.1:.*" + - "Upstream failed, cause: SSLHandshakeException: General SSLEngine problem", + "Upstream failed, cause: SSLHandshakeException: .*", occurrences = 3) .intercept { system.actorSelection(rootB / "user" / "echo") ! Identify("echo")