diff --git a/management-api-server/src/test/java/com/datastax/mgmtapi/NonDestructiveOpsIT.java b/management-api-server/src/test/java/com/datastax/mgmtapi/NonDestructiveOpsIT.java index bd4ffd31..1befe5e6 100644 --- a/management-api-server/src/test/java/com/datastax/mgmtapi/NonDestructiveOpsIT.java +++ b/management-api-server/src/test/java/com/datastax/mgmtapi/NonDestructiveOpsIT.java @@ -758,7 +758,7 @@ public void testAsyncRepair() throws IOException, URISyntaxException, Interrupte String requestAsJSON = WriterUtility.asString(repairRequest, MediaType.APPLICATION_JSON); Pair repairResponse = - client.post(repairUri.toURL(), null).thenApply(this::responseAsCodeAndBody).join(); + client.post(repairUri.toURL(), requestAsJSON).thenApply(this::responseAsCodeAndBody).join(); assertThat(repairResponse.getLeft()).isEqualTo(HttpStatus.SC_ACCEPTED); String jobId = repairResponse.getRight(); assertThat(jobId).isNotEmpty();