Skip Multicast test for OIO as it seems to fail because of a JDK bug on OSX

This commit is contained in:
Norman Maurer 2012-10-27 20:51:21 +02:00
parent 71254e4bb5
commit 9551af6045

View File

@ -24,6 +24,7 @@ import io.netty.channel.ChannelInboundMessageHandlerAdapter;
import io.netty.channel.ChannelOption;
import io.netty.channel.socket.DatagramChannel;
import io.netty.channel.socket.DatagramPacket;
import io.netty.channel.socket.oio.OioDatagramChannel;
import io.netty.util.NetworkConstants;
import java.net.InetSocketAddress;
@ -61,6 +62,13 @@ public class DatagramMulticastTest extends AbstractDatagramTest {
cb.localAddress(addr.getPort());
Channel sc = sb.bind().sync().channel();
if (sc instanceof OioDatagramChannel) {
// skip the test for OIO, as it fails because of
// No route to host which makes no sense.
// Maybe a JDK bug ?
sc.close().awaitUninterruptibly();
return;
}
DatagramChannel cc = (DatagramChannel) cb.bind().sync().channel();
String group = "230.0.0.1";