Let the test pass in osx also
This commit is contained in:
parent
33f9d55bc4
commit
ef6056f5f9
@ -75,9 +75,9 @@ public abstract class AbstractDatagramTest {
|
|||||||
});
|
});
|
||||||
cb.getPipeline().addFirst("handler", new SimpleChannelUpstreamHandler());
|
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();
|
ChannelBuffer buf = ChannelBuffers.dynamicBuffer();
|
||||||
buf.writeInt(1);
|
buf.writeInt(1);
|
||||||
cc.write(buf, sc.getLocalAddress());
|
cc.write(buf, sc.getLocalAddress());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user