Fix test failure
This commit is contained in:
parent
cc9b9567b9
commit
31ecd17212
@ -130,9 +130,11 @@ public class LocalChannelTest {
|
|||||||
assertThat(e, is(instanceOf(ClosedChannelException.class)));
|
assertThat(e, is(instanceOf(ClosedChannelException.class)));
|
||||||
// Ensure that the actual write attempt on a closed channel was never made by asserting that
|
// 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.
|
// the ClosedChannelException has been created by AbstractUnsafe rather than transport implementations.
|
||||||
|
if (e.getStackTrace().length > 0) {
|
||||||
assertThat(e.getStackTrace()[0].getClassName(), is(AbstractChannel.class.getName() + "$AbstractUnsafe"));
|
assertThat(e.getStackTrace()[0].getClassName(), is(AbstractChannel.class.getName() + "$AbstractUnsafe"));
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
serverGroup.shutdownGracefully();
|
serverGroup.shutdownGracefully();
|
||||||
clientGroup.shutdownGracefully();
|
clientGroup.shutdownGracefully();
|
||||||
|
Loading…
Reference in New Issue
Block a user