Skip to content

Commit

Permalink
fix mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuch committed Jun 26, 2024
1 parent f90c823 commit 6422faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/jdk/java/nio/channels/DatagramChannel/Disconnect.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static void test(DatagramChannel dc, InetAddress lo) throws IOException {

dc.write(ByteBuffer.wrap("hello".getBytes()));

if (getLocalPort(dc) == getLocalPort(server)) {
if (getLocalPort(dc) != getLocalPort(server)) {
ByteBuffer bb = ByteBuffer.allocate(100);
server.receive(bb);
} else {
Expand Down

0 comments on commit 6422faa

Please sign in to comment.