From f3456ce098d3357d09a0adf8d289e847101a507c Mon Sep 17 00:00:00 2001 From: norman Date: Tue, 10 Apr 2012 08:20:58 +0200 Subject: [PATCH] Make sure multicast tests pass on all os'es --- .../transport/socket/nio/oio/NioOioDatagramMulticastTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioDatagramMulticastTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioDatagramMulticastTest.java index 30c70aa019..ab5861ac9f 100644 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioDatagramMulticastTest.java +++ b/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioDatagramMulticastTest.java @@ -3,6 +3,7 @@ package io.netty.testsuite.transport.socket.nio.oio; import java.util.concurrent.Executor; import io.netty.channel.socket.DatagramChannelFactory; +import io.netty.channel.socket.nio.NioDatagramChannel; import io.netty.channel.socket.nio.NioDatagramChannelFactory; import io.netty.channel.socket.oio.OioDatagramChannelFactory; import io.netty.testsuite.transport.socket.AbstractDatagramMulticastTest; @@ -16,7 +17,7 @@ public class NioOioDatagramMulticastTest extends AbstractDatagramMulticastTest { @Override protected DatagramChannelFactory newClientSocketChannelFactory(Executor executor) { - return new NioDatagramChannelFactory(executor); + return new NioDatagramChannelFactory(executor, NioDatagramChannel.ProtocolFamily.INET); }