commit | 369d1a091662d6498b54822de1900c8e1a4567df | [log] [tgz] |
---|---|---|
author | Oleg Kalnichevski <olegk@apache.org> | Tue Jun 14 08:42:54 2016 +0000 |
committer | Oleg Kalnichevski <olegk@apache.org> | Tue Jun 14 08:42:54 2016 +0000 |
tree | 4a0779e29e073221e0a2b22f29e1beda8b3bf753 | |
parent | d3d17307be04900ac4a5690e5ebcde355defc4b2 [diff] |
Use non-routable 0.0.0.0 instead of '.invalid' hostname to simulate refused connection exception git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/branches/4.1.x@1748358 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java b/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java index 200be49..87c8595 100644 --- a/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java +++ b/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java
@@ -242,7 +242,7 @@ .build(); this.httpclient.start(); - final HttpGet get = new HttpGet("http://stuff.invalid/"); + final HttpGet get = new HttpGet("http://0.0.0.0/"); final HttpAsyncRequestProducer producer = HttpAsyncMethods.create(get); final AtomicBoolean closed = new AtomicBoolean(false);