Let the test pass in osx also

This commit is contained in:
Norman Maurer 2012-04-04 19:05:57 +02:00
parent 33f9d55bc4
commit ef6056f5f9

View File

@ -75,9 +75,9 @@ public abstract class AbstractDatagramTest {
});
cb.getPipeline().addFirst("handler", new SimpleChannelUpstreamHandler());
Channel sc = sb.bind(new InetSocketAddress(0));
Channel sc = sb.bind(new InetSocketAddress("127.0.0.1",0));
Channel cc = cb.bind(new InetSocketAddress(0));
Channel cc = cb.bind(new InetSocketAddress("127.0.0.1", 0));
ChannelBuffer buf = ChannelBuffers.dynamicBuffer();
buf.writeInt(1);
cc.write(buf, sc.getLocalAddress());