Skip to content

Commit

Permalink
8332535: Mark java/nio/channels/DatagramChannel/Loopback.java as inte…
Browse files Browse the repository at this point in the history
…rmittent

Signed-off-by: sendaoYan <yansendao.ysd@alibaba-inc.com>
  • Loading branch information
sendaoYan committed May 20, 2024
1 parent d6b7f9b commit 9879aab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/jdk/java/nio/channels/DatagramChannel/Loopback.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -23,6 +23,7 @@

/* @test
* @bug 8236184
* @key intermittent
* @library /test/lib
* @build jdk.test.lib.NetworkConfiguration
* jdk.test.lib.net.IPSupport
Expand Down Expand Up @@ -160,7 +161,7 @@ static void test(ProtocolFamily family, InetAddress group, NetworkInterface ni)
if (sender != null) {
System.out.format("received %s from %s%n", dst, sender);
senderPort = ((InetSocketAddress) sender).getPort();
assertTrue(senderPort != localPort, "Unexpected message");
assertTrue(senderPort != localPort, "Unexpected message: localPort=" + localPort);
}
}
}
Expand Down

0 comments on commit 9879aab

Please sign in to comment.