Make sure multicast tests pass on all os'es

This commit is contained in:
norman 2012-04-10 08:20:58 +02:00
parent 32f61ed01a
commit f3456ce098

View File

@ -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);
}