Skip to content

Commit

Permalink
Fix Checkstyle issues.
Browse files Browse the repository at this point in the history
Signed-off-by: Rabi Panda <[email protected]>
  • Loading branch information
adnapibar authored and nknize committed Mar 22, 2021
1 parent 8bba660 commit 8469519
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ public void testSimpleRetry() throws Exception {
.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));
Expand Down Expand Up @@ -143,7 +144,8 @@ public void sleep(long millis) throws InterruptedException {
.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");
Expand All @@ -170,7 +172,8 @@ public void testIOExceptionRetry() throws Exception {
.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));
Expand Down

0 comments on commit 8469519

Please sign in to comment.