From d03f17746889bde6c23e2f8efdb6b7e35341c2fb Mon Sep 17 00:00:00 2001 From: Patrik Nordwall Date: Wed, 21 Feb 2018 12:36:26 +0100 Subject: [PATCH] fix TlsTcpWithHostnameVerificationSpec when run without tls --- .../src/test/scala/akka/remote/artery/tcp/TlsTcpSpec.scala | 5 +++++ 1 file changed, 5 insertions(+) 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 4ace02e1ad..1c0732ee10 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 @@ -159,6 +159,11 @@ class TlsTcpWithHostnameVerificationSpec extends ArteryMultiNodeSpec( "Artery with TLS/TCP and hostname-verification=on" must { "reject invalid" in { + // this test only makes sense with tls-tcp transport + val arterySettings = ArterySettings(system.settings.config.getConfig("akka.remote.artery")) + if (!arterySettings.Enabled || arterySettings.Transport != ArterySettings.TlsTcp) + pending + systemB.actorOf(TestActors.echoActorProps, "echo") system.actorSelection(rootB / "user" / "echo") ! Identify("echo") expectNoMessage(2.seconds)