You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by se...@apache.org on 2019/11/02 10:02:44 UTC
[jmeter] 01/02: temporary test code
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git
commit 6aebb3bb8a51fa87edb2819f4dcee3d00bfc100e
Author: Sebb <se...@apache.org>
AuthorDate: Sat Nov 2 09:32:27 2019 +0000
temporary test code
---
.../org/apache/jmeter/protocol/http/control/DnsManagerTest.java | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/control/DnsManagerTest.java b/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/control/DnsManagerTest.java
index 784a607..98e1b7b 100644
--- a/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/control/DnsManagerTest.java
+++ b/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/control/DnsManagerTest.java
@@ -44,7 +44,14 @@ public class DnsManagerTest {
dns.addServer("20.0.118.11");
// By default it uses 3 retries (see org.xbill.DNS.ExtendedResolver#setRetries)
dns.setTimeoutMs(2000);
-
+ try { // Temporary test: what do other hosts generate?
+ java.net.InetAddress ina[];
+ ina = dns.resolve("localhost");
+ System.out.println(java.util.Arrays.toString(ina));
+ } catch (Exception e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
HTTPSamplerBase http = HTTPSamplerFactory.newInstance(httpImplementation);
http.setDNSResolver(dns);
http.setMethod(HTTPSampler.GET);