Fix compile error introduced by incorrect cherry-pick of 7a613c2131

This commit is contained in:
Norman Maurer 2019-01-21 09:30:52 +01:00
parent d870199c4e
commit a4d1e97987

View File

@ -24,9 +24,15 @@ public class EpollDatagramChannelConfigTest {
@Test
public void testIpFreeBind() throws Exception {
Epoll.ensureAvailability();
EpollDatagramChannel channel = new EpollDatagramChannel();
assertTrue(channel.config().setOption(EpollChannelOption.IP_FREEBIND, true));
assertTrue(channel.config().getOption(EpollChannelOption.IP_FREEBIND));
channel.fd().close();
EpollEventLoopGroup group = new EpollEventLoopGroup(1);
try {
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();
}
}
}