Fix test failure

This commit is contained in:
Trustin Lee 2013-07-17 21:16:52 +09:00
parent cc9b9567b9
commit 31ecd17212

View File

@ -130,8 +130,10 @@ public class LocalChannelTest {
assertThat(e, is(instanceOf(ClosedChannelException.class)));
// Ensure that the actual write attempt on a closed channel was never made by asserting that
// the ClosedChannelException has been created by AbstractUnsafe rather than transport implementations.
assertThat(e.getStackTrace()[0].getClassName(), is(AbstractChannel.class.getName() + "$AbstractUnsafe"));
e.printStackTrace();
if (e.getStackTrace().length > 0) {
assertThat(e.getStackTrace()[0].getClassName(), is(AbstractChannel.class.getName() + "$AbstractUnsafe"));
e.printStackTrace();
}
}
serverGroup.shutdownGracefully();