Skip to content

Commit

Permalink
Merge pull request #43015 from mkouba/rest-drain-test-fix
Browse files Browse the repository at this point in the history
REST: comment out useless 10K System.out.printl() in the DrainTest
  • Loading branch information
geoand authored Sep 4, 2024
2 parents 97aea2d + 4f8d7c1 commit c0c560a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import java.net.http.HttpResponse;
import java.security.SecureRandom;
import java.security.cert.X509Certificate;
import java.time.Instant;
import java.util.stream.IntStream;

import javax.net.ssl.SSLContext;
Expand Down Expand Up @@ -83,7 +82,7 @@ void testAsyncHttp2() {
var sum = IntStream.range(0, 10000)
.parallel()
.map(i -> get("https://localhost:8444/test/bytesAsync"))
.peek(i -> System.out.println(Instant.now() + " Got response: " + i))
//.peek(i -> System.out.println(Instant.now() + " Got response: " + i))
.sum();
System.out.println("Request completed in " + (System.currentTimeMillis() - before) + " ms");
Assertions.assertThat(sum).isEqualTo(1000000000);
Expand Down

0 comments on commit c0c560a

Please sign in to comment.