Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed May 20, 2024
1 parent 5c1c8e2 commit b289ddd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,11 @@ void testService() throws Exception {
url,
"{\"key\": \"my-key2\", \"value\": \"my-value\", \"headers\": {\"header1\":\"value1\"}}"));

// sorry but kafka can't keep up
final int numParallel = getStreamingCluster().type().equals("kafka") ? 5 : 30;

List<CompletableFuture<Void>> futures1 = new ArrayList<>();
for (int i = 0; i < 30; i++) {
for (int i = 0; i < numParallel; i++) {
CompletableFuture<Void> future =
CompletableFuture.runAsync(
() -> {
Expand Down

0 comments on commit b289ddd

Please sign in to comment.