diff --git a/src/server/src/test/java/io/cassandrareaper/acceptance/BasicSteps.java b/src/server/src/test/java/io/cassandrareaper/acceptance/BasicSteps.java index bb5c864fb..08f4d2779 100644 --- a/src/server/src/test/java/io/cassandrareaper/acceptance/BasicSteps.java +++ b/src/server/src/test/java/io/cassandrareaper/acceptance/BasicSteps.java @@ -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 @@ -2952,7 +2951,6 @@ public void addAndAbortRepairs(String clusterName, String keyspace) throws Throw .isEqualTo(Response.Status.OK.getStatusCode()) .withFailMessage(responseData); } - iter = iter ++; }; } }