Skip to content

Commit

Permalink
Test stabilization
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Venturi committed Sep 24, 2024
1 parent ad4c30d commit b75056e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/test/java/eu/lucaventuri/fibry/LoadTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,16 @@ public void testHttp() throws IOException, URISyntaxException, InterruptedExcept
Stereotypes.def().embeddedHttpServer(port, new Stereotypes.HttpStringWorker("/test", ex ->
""+num.incrementAndGet()));

final int numThreads = 250;
final int numCalls = 100;
final int numThreads = 150;
final int numCalls = 50;

System.out.println(uri);

//Thread.sleep(300_00);

CountDownLatch latch = new CountDownLatch(numThreads);
var client = HttpUtil.getHttpClient(10);
var request = HttpRequest.newBuilder()
.uri(uri).GET().build();
var request = HttpRequest.newBuilder().uri(uri).GET().build();
var handlers = HttpResponse.BodyHandlers.ofString();

for(int i=0; i<numThreads; i++) {
Expand Down

0 comments on commit b75056e

Please sign in to comment.