Skip to content

Commit

Permalink
While loop not terminating in tests, let's try a for loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed Jan 18, 2023
1 parent 23c06d1 commit 4cf7a80
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2907,8 +2907,7 @@ public void addAndAbortRepairs(String clusterName, String keyspace) throws Throw
params.put("keyspace", keyspace);
params.put("owner", "test_user");

Integer iter = 1;
while (iter <= 11) {
for (int iter = 1; iter < 12; iter++) {
Response response = RUNNERS.get(0).callReaper("POST", "/repair_run", Optional.of(params));
String responseData = response.readEntity(String.class);
Assertions
Expand Down Expand Up @@ -2952,7 +2951,6 @@ public void addAndAbortRepairs(String clusterName, String keyspace) throws Throw
.isEqualTo(Response.Status.OK.getStatusCode())
.withFailMessage(responseData);
}
iter = iter ++;
};
}
}
Expand Down

0 comments on commit 4cf7a80

Please sign in to comment.