Skip to content

Commit 8469519

Browse files
adnapibarnknize
authored andcommitted
Fix Checkstyle issues.
Signed-off-by: Rabi Panda <adnapibar@gmail.com>
1 parent 8bba660 commit 8469519

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

plugins/discovery-gce/src/test/java/org/opensearch/discovery/gce/RetryHttpInitializerWrapperTests.java

+6-3
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ public void testSimpleRetry() throws Exception {
110110
.build();
111111

112112
// TODO (URL) replace w/ opensearch url
113-
HttpRequest request = client.getRequestFactory().buildRequest("Get", new GenericUrl("https://github.com/opensearch-project/OpenSearch"), null);
113+
HttpRequest request = client.getRequestFactory().buildRequest(
114+
"Get", new GenericUrl("https://github.com/opensearch-project/OpenSearch"), null);
114115
HttpResponse response = request.execute();
115116

116117
assertThat(mockSleeper.getCount(), equalTo(3));
@@ -143,7 +144,8 @@ public void sleep(long millis) throws InterruptedException {
143144
.build();
144145

145146
// TODO (URL) replace w/ opensearch URL
146-
HttpRequest request1 = client.getRequestFactory().buildRequest("Get", new GenericUrl("https://github.com/opensearch-project/OpenSearch"), null);
147+
HttpRequest request1 = client.getRequestFactory().buildRequest("Get", new GenericUrl(
148+
"https://github.com/opensearch-project/OpenSearch"), null);
147149
try {
148150
request1.execute();
149151
fail("Request should fail if wait too long");
@@ -170,7 +172,8 @@ public void testIOExceptionRetry() throws Exception {
170172
.build();
171173

172174
// TODO (URL) replace w/ opensearch URL
173-
HttpRequest request = client.getRequestFactory().buildRequest("Get", new GenericUrl("https://github.com/opensearch-project/OpenSearch"), null);
175+
HttpRequest request = client.getRequestFactory().buildRequest("Get", new GenericUrl(
176+
"https://github.com/opensearch-project/OpenSearch"), null);
174177
HttpResponse response = request.execute();
175178

176179
assertThat(mockSleeper.getCount(), equalTo(1));

0 commit comments

Comments
 (0)