Fix compile error introduced by incorrect cherry-pick of 7a613c2131
This commit is contained in:
parent
d870199c4e
commit
a4d1e97987
@ -24,9 +24,15 @@ public class EpollDatagramChannelConfigTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testIpFreeBind() throws Exception {
|
public void testIpFreeBind() throws Exception {
|
||||||
Epoll.ensureAvailability();
|
Epoll.ensureAvailability();
|
||||||
EpollDatagramChannel channel = new EpollDatagramChannel();
|
|
||||||
assertTrue(channel.config().setOption(EpollChannelOption.IP_FREEBIND, true));
|
EpollEventLoopGroup group = new EpollEventLoopGroup(1);
|
||||||
assertTrue(channel.config().getOption(EpollChannelOption.IP_FREEBIND));
|
try {
|
||||||
channel.fd().close();
|
EpollDatagramChannel channel = new EpollDatagramChannel(group.next());
|
||||||
|
assertTrue(channel.config().setOption(EpollChannelOption.IP_FREEBIND, true));
|
||||||
|
assertTrue(channel.config().getOption(EpollChannelOption.IP_FREEBIND));
|
||||||
|
channel.fd().close();
|
||||||
|
} finally {
|
||||||
|
group.shutdownGracefully();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user