Fix Checkstyle issues.

Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
Rabi Panda 2021-03-20 00:58:09 -07:00 committed by Nick Knize
parent 8bba6603da
commit 8469519413
1 changed files with 6 additions and 3 deletions

View File

@ -110,7 +110,8 @@ public class RetryHttpInitializerWrapperTests extends OpenSearchTestCase {
.build();
// TODO (URL) replace w/ opensearch url
HttpRequest request = client.getRequestFactory().buildRequest("Get", new GenericUrl("https://github.com/opensearch-project/OpenSearch"), null);
HttpRequest request = client.getRequestFactory().buildRequest(
"Get", new GenericUrl("https://github.com/opensearch-project/OpenSearch"), null);
HttpResponse response = request.execute();
assertThat(mockSleeper.getCount(), equalTo(3));
@ -143,7 +144,8 @@ public class RetryHttpInitializerWrapperTests extends OpenSearchTestCase {
.build();
// TODO (URL) replace w/ opensearch URL
HttpRequest request1 = client.getRequestFactory().buildRequest("Get", new GenericUrl("https://github.com/opensearch-project/OpenSearch"), null);
HttpRequest request1 = client.getRequestFactory().buildRequest("Get", new GenericUrl(
"https://github.com/opensearch-project/OpenSearch"), null);
try {
request1.execute();
fail("Request should fail if wait too long");
@ -170,7 +172,8 @@ public class RetryHttpInitializerWrapperTests extends OpenSearchTestCase {
.build();
// TODO (URL) replace w/ opensearch URL
HttpRequest request = client.getRequestFactory().buildRequest("Get", new GenericUrl("https://github.com/opensearch-project/OpenSearch"), null);
HttpRequest request = client.getRequestFactory().buildRequest("Get", new GenericUrl(
"https://github.com/opensearch-project/OpenSearch"), null);
HttpResponse response = request.execute();
assertThat(mockSleeper.getCount(), equalTo(1));