Dont run DnsDiscoverySpec if docker not available (#26071)

* Dont run DnsDiscoverySpec if docker not available

Fixes #26062
This commit is contained in:
Christopher Batey 2018-12-06 20:24:53 +00:00 committed by Patrik Nordwall
parent 66fa541118
commit e1dc8dcb4e

View file

@ -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."