Do not assume ES is running on localhost in tests
Remove references to http://localhost when closing the ES indexes during tests. Change-Id: I7c11cb8078bfcf5a8b7a337d764dcb90f7efbf42
This commit is contained in:
@@ -60,8 +60,10 @@ public class ElasticV6QueryChangesTest extends AbstractQueryChangesTest {
|
||||
client.execute(
|
||||
new HttpPost(
|
||||
String.format(
|
||||
"http://localhost:%d/%s*/_close",
|
||||
container.getHttpHost().getPort(), getSanitizedMethodName())),
|
||||
"http://%s:%d/%s*/_close",
|
||||
container.getHttpHost().getHostName(),
|
||||
container.getHttpHost().getPort(),
|
||||
getSanitizedMethodName())),
|
||||
HttpClientContext.create(),
|
||||
null);
|
||||
}
|
||||
|
@@ -60,8 +60,10 @@ public class ElasticV7QueryChangesTest extends AbstractQueryChangesTest {
|
||||
client.execute(
|
||||
new HttpPost(
|
||||
String.format(
|
||||
"http://localhost:%d/%s*/_close",
|
||||
container.getHttpHost().getPort(), getSanitizedMethodName())),
|
||||
"http://%s:%d/%s*/_close",
|
||||
container.getHttpHost().getHostName(),
|
||||
container.getHttpHost().getPort(),
|
||||
getSanitizedMethodName())),
|
||||
HttpClientContext.create(),
|
||||
null);
|
||||
}
|
||||
|
Reference in New Issue
Block a user