Make sure the exception is thrown when it happens during test

This commit is contained in:
Norman Maurer 2013-06-13 21:41:55 +02:00
parent 8edee3272a
commit 86e95dd7ac

View File

@ -104,7 +104,6 @@ public class SocketGatheringWriteTest extends AbstractSocketTest {
// Ignore.
}
}
assertEquals(Unpooled.wrappedBuffer(data), sh.received);
sh.channel.close().sync();
ch.channel.close().sync();
sc.close().sync();
@ -122,6 +121,7 @@ public class SocketGatheringWriteTest extends AbstractSocketTest {
throw ch.exception.get();
}
assertEquals(0, ch.counter);
assertEquals(Unpooled.wrappedBuffer(data), sh.received);
}
private static class TestHandler extends ChannelInboundHandlerAdapter {