From 4cf7a8081f67a00a2594e67cce84697d0c7349e3 Mon Sep 17 00:00:00 2001 From: Miles-Garnsey Date: Wed, 18 Jan 2023 16:57:13 +1100 Subject: [PATCH] While loop not terminating in tests, let's try a for loop. --- .../test/java/io/cassandrareaper/acceptance/BasicSteps.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 ++; }; } }