RFR: 8293696: java/nio/channels/DatagramChannel/SelectWhenRefused.java fails with "Unexpected wakeup" [v10]

Alan Bateman alanb at openjdk.org
Tue Nov 8 17:08:38 UTC 2022


On Tue, 8 Nov 2022 16:45:59 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> Does it actually make sense? I thought the purpose of this test was to test before connecting, while connected, and after disconnecting. If we split into three different `@TEST` methods there's no telling in which order they will be executed.

I think we created this test as part of work to get PUE on Windows.  Looking at it now, the "not connected" and the "connected" cases are two distinct scenarios. They could be separate test methods, each with their own setup and teardown. The execution order shouldn't matter as they will use different refusers.

The more advanced case is where you connect, then disconnect, and test that a PUE is not thrown.

I'll leave it you, I was just pointing out that it's one test method running three tests.

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

PR: https://git.openjdk.org/jdk/pull/10851


More information about the nio-dev mailing list