Merge pull request #752 from ustcweizhou/BasicRestClientTest-fakelocalhost

use fakelocalhost in BasicRestClientTestBasicRestClientTest will fail if the port 443 is open on localhost.
use fakelocalhost instead of localhost can fix it.
Please see the latest discussion in https://github.com/apache/cloudstack/pull/737

* pr/752:
  use fakelocalhost in BasicRestClientTest

Signed-off-by: Rajani Karuturi <rajani.karuturi@citrix.com>
This commit is contained in:
Rajani Karuturi 2015-08-28 22:12:40 +05:30
commit f5a7395cc2
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ import org.junit.Test;
public class BasicRestClientTest {
private static final String LOCALHOST = "localhost";
private static final String LOCALHOST = "fakelocalhost";
private static final String HTTPS = HttpConstants.HTTPS;
private static final StatusLine HTTP_200_REPSONSE = new BasicStatusLine(new ProtocolVersion(HTTPS, 1, 1), 200, "OK");