Skip to content

Commit 01109dd

Browse files
committed
Fix test-failures introduces by c182711.
1 parent c182711 commit 01109dd

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

transport/src/test/java/io/netty/bootstrap/BootstrapTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public void operationComplete(ChannelFuture future) throws Exception {
220220
}
221221
}
222222

223-
@Test(expected = ChannelException.class, timeout = 10000)
223+
@Test(expected = ConnectException.class, timeout = 10000)
224224
public void testLateRegistrationConnect() throws Exception {
225225
EventLoopGroup group = new DelayedEventLoopGroup();
226226
try {

transport/src/test/java/io/netty/channel/pool/AbstractChannelPoolMapTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@
2525
import io.netty.channel.local.LocalEventLoopGroup;
2626
import org.junit.Test;
2727

28+
import java.net.ConnectException;
29+
2830
import static org.junit.Assert.*;
2931

3032
public class AbstractChannelPoolMapTest {
3133
private static final String LOCAL_ADDR_ID = "test.id";
3234

33-
@Test(expected = ChannelException.class)
35+
@Test(expected = ConnectException.class)
3436
public void testMap() throws Exception {
3537
EventLoopGroup group = new LocalEventLoopGroup();
3638
LocalAddress addr = new LocalAddress(LOCAL_ADDR_ID);

0 commit comments

Comments
 (0)