jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [jmeter] 01/02: temporary test code
Date Sat, 02 Nov 2019 10:02:44 GMT
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 <sebb@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);


Mime
View raw message