Browse Source

Replaced localhost with 127.0.0.1 in PluginManagerTests

Luca Cavanna 12 years ago
parent
commit
2d1b841ba1

+ 1 - 1
src/test/java/org/elasticsearch/test/integration/plugin/PluginManagerTests.java

@@ -124,7 +124,7 @@ public class PluginManagerTests extends AbstractNodesTests {
     }
 
     private void assertPluginAvailable(String pluginName) {
-        HttpClient httpClient = new HttpClient("http://localhost:9200/");
+        HttpClient httpClient = new HttpClient("http://127.0.0.1:9200/");
         HttpClientResponse response = httpClient.request("_plugin/" + pluginName + "/");
         assertThat(response.errorCode(), Matchers.equalTo(RestStatus.OK.getStatus()));
     }