Skip to content

Commit

Permalink
Added throttling limitation
Browse files Browse the repository at this point in the history
Signed-off-by: vhnes <ext-vladyslav.hnes@here.com>
  • Loading branch information
VladyslavHnes committed May 14, 2024
1 parent 6a0cfb2 commit 64680e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static void cleanUp() {
public void testClientThrottling() {
AtomicInteger successfulCount = new AtomicInteger(0);
AtomicInteger tooManyRequestsCount = new AtomicInteger(0);
ExecutorService executorService = newFixedThreadPool(20);
ExecutorService executorService = newFixedThreadPool(10);

CompletableFuture<?>[] futures = IntStream.range(0, 10)
.mapToObj(i -> CompletableFuture.runAsync(() ->
Expand Down

0 comments on commit 64680e0

Please sign in to comment.