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