Skip to content

Commit

Permalink
increase code coverage
Browse files Browse the repository at this point in the history
Signed-off-by: kkewwei <[email protected]>
  • Loading branch information
kkewwei committed Jul 31, 2024
1 parent 18d3125 commit 0ce029c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public void testdoCatRequest() throws IOException, ParseException {
assertEquals(nodesCount, NodeInfos.length);
}

for (int i = 0; i < 30; i++) {
Request nodesRequest = new Request("GET", "/_cat/nodes?timeout=" + randomInt(1500) + "ms");
for (int i = 1; i < 1500; i+= 50) {
Request nodesRequest = new Request("GET", "/_cat/nodes?timeout=" + i + "ms");
try {
Response response = restClient.performRequest(nodesRequest);
assertEquals(SC_OK, response.getStatusLine().getStatusCode());
Expand Down

0 comments on commit 0ce029c

Please sign in to comment.