From e1dc8dcb4eddf5f10ad0ec8210aae07c3ed24dc5 Mon Sep 17 00:00:00 2001 From: Christopher Batey Date: Thu, 6 Dec 2018 20:24:53 +0000 Subject: [PATCH] Dont run DnsDiscoverySpec if docker not available (#26071) * Dont run DnsDiscoverySpec if docker not available Fixes #26062 --- .../test/scala/akka/discovery/dns/DnsDiscoverySpec.scala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/akka-discovery/src/test/scala/akka/discovery/dns/DnsDiscoverySpec.scala b/akka-discovery/src/test/scala/akka/discovery/dns/DnsDiscoverySpec.scala index 636757555d..1c08474f8d 100644 --- a/akka-discovery/src/test/scala/akka/discovery/dns/DnsDiscoverySpec.scala +++ b/akka-discovery/src/test/scala/akka/discovery/dns/DnsDiscoverySpec.scala @@ -53,7 +53,7 @@ class DnsDiscoverySpec extends AkkaSpec(DnsDiscoverySpec.config) "Dns Discovery with isolated resolver" must { if (!dockerAvailable()) { - system.log.error("Test not run as docker is not available") + info("Test not run as docker is not available") pending } @@ -90,6 +90,11 @@ class DnsDiscoverySpec extends AkkaSpec(DnsDiscoverySpec.config) } "Dns discovery with the system resolver" must { + if (!dockerAvailable()) { + info("Test not run as docker is not available") + pending + } + "work with SRV records" in { val discovery = Discovery(systemWithAsyncDnsAsResolver).discovery val name = "_service._tcp.foo.test."