This is an automated email from the ASF dual-hosted git repository.
fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git
The following commit(s) were added to refs/heads/master by this push:
new a51ecf2 Try to guess the current DNS resolver instead of hard coding
it
a51ecf2 is described below
commit a51ecf23e57367ed79a3844f2e05b2e51e88d53b
Author: Felix Schumacher <[email protected]>
AuthorDate: Wed Jul 17 20:35:57 2019 +0200
Try to guess the current DNS resolver instead of hard coding it
---
.../apache/jmeter/protocol/http/control/DNSCacheManagerSpec.groovy | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/test/src/org/apache/jmeter/protocol/http/control/DNSCacheManagerSpec.groovy
b/test/src/org/apache/jmeter/protocol/http/control/DNSCacheManagerSpec.groovy
index b12b3fe..49b7930 100644
---
a/test/src/org/apache/jmeter/protocol/http/control/DNSCacheManagerSpec.groovy
+++
b/test/src/org/apache/jmeter/protocol/http/control/DNSCacheManagerSpec.groovy
@@ -20,11 +20,13 @@ package org.apache.jmeter.protocol.http.control
import org.apache.jmeter.junit.spock.JMeterSpec
import org.xbill.DNS.ExtendedResolver
+import org.xbill.DNS.ResolverConfig
+
import spock.lang.IgnoreIf
class DNSCacheManagerSpec extends JMeterSpec {
- private static final String VALID_DNS_SERVER = "8.8.8.8"
+ private static final String VALID_DNS_SERVER =
ResolverConfig.getCurrentConfig().servers()[0];
private static final String INVALID_DNS_SERVER = "512.1.1.1"
static def localDNSResolverFailed() {