On Fri, 30 Jan 2026 11:04:02 GMT, Daniel Fuchs <[email protected]> wrote:

>> test/jdk/java/net/httpclient/CancelRequestTest.java line 342:
>> 
>>> 340:     private static CountDownLatch addLatchFor(HttpRequest req) {
>>> 341:         // release left over latches
>>> 342:         releaseLatches();
>> 
>> `releaseLatches()` calls `latches.clear()`. We will effectively only have 
>> one latch in the map at a time. Is that what you intended?
>
> Yes - we don't care what the key is.

All we care is that the server side, when it runs, picks up the right latch, 
and not the one left over from the previous test.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/29415#discussion_r2745779607

Reply via email to