Fix test-failures introduces by c1827114e9
.
This commit is contained in:
parent
c1827114e9
commit
01109dd635
@ -220,7 +220,7 @@ public class BootstrapTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = ChannelException.class, timeout = 10000)
|
@Test(expected = ConnectException.class, timeout = 10000)
|
||||||
public void testLateRegistrationConnect() throws Exception {
|
public void testLateRegistrationConnect() throws Exception {
|
||||||
EventLoopGroup group = new DelayedEventLoopGroup();
|
EventLoopGroup group = new DelayedEventLoopGroup();
|
||||||
try {
|
try {
|
||||||
|
@ -25,12 +25,14 @@ import io.netty.channel.local.LocalChannel;
|
|||||||
import io.netty.channel.local.LocalEventLoopGroup;
|
import io.netty.channel.local.LocalEventLoopGroup;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.net.ConnectException;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
public class AbstractChannelPoolMapTest {
|
public class AbstractChannelPoolMapTest {
|
||||||
private static final String LOCAL_ADDR_ID = "test.id";
|
private static final String LOCAL_ADDR_ID = "test.id";
|
||||||
|
|
||||||
@Test(expected = ChannelException.class)
|
@Test(expected = ConnectException.class)
|
||||||
public void testMap() throws Exception {
|
public void testMap() throws Exception {
|
||||||
EventLoopGroup group = new LocalEventLoopGroup();
|
EventLoopGroup group = new LocalEventLoopGroup();
|
||||||
LocalAddress addr = new LocalAddress(LOCAL_ADDR_ID);
|
LocalAddress addr = new LocalAddress(LOCAL_ADDR_ID);
|
||||||
|
Loading…
Reference in New Issue
Block a user