Fix test-failures introduces by c1827114e9.

This commit is contained in:
Norman Maurer 2016-05-14 20:38:31 +02:00
parent c1827114e9
commit 01109dd635
2 changed files with 4 additions and 2 deletions

View File

@ -220,7 +220,7 @@ public class BootstrapTest {
}
}
@Test(expected = ChannelException.class, timeout = 10000)
@Test(expected = ConnectException.class, timeout = 10000)
public void testLateRegistrationConnect() throws Exception {
EventLoopGroup group = new DelayedEventLoopGroup();
try {

View File

@ -25,12 +25,14 @@ import io.netty.channel.local.LocalChannel;
import io.netty.channel.local.LocalEventLoopGroup;
import org.junit.Test;
import java.net.ConnectException;
import static org.junit.Assert.*;
public class AbstractChannelPoolMapTest {
private static final String LOCAL_ADDR_ID = "test.id";
@Test(expected = ChannelException.class)
@Test(expected = ConnectException.class)
public void testMap() throws Exception {
EventLoopGroup group = new LocalEventLoopGroup();
LocalAddress addr = new LocalAddress(LOCAL_ADDR_ID);