Skip to content

Commit 2fc074b

Browse files
the-thingchrjohn
authored andcommitted
improving flaky ssl certificate test (#179)
(cherry picked from commit a00e6f4)
1 parent 9b5a65a commit 2fc074b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quickfixj-core/src/test/java/quickfix/mina/ssl/SSLCertificateTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,11 +545,11 @@ public TestConnector(SessionSettings sessionSettings) throws ConfigError {
545545

546546
private SessionConnector prepareConnector(SessionSettings sessionSettings) throws ConfigError {
547547
SessionConnector sessionConnector = createConnector(sessionSettings);
548-
sessionConnector.setIoFilterChainBuilder(chain -> chain.addLast("SSL exception handler", new IoFilterAdapter() {
548+
sessionConnector.setIoFilterChainBuilder(chain -> chain.addFirst("Exception handler", new IoFilterAdapter() {
549549
@Override
550550
public void exceptionCaught(NextFilter nextFilter, IoSession session, Throwable cause)
551551
throws Exception {
552-
LOGGER.info("SSL exception", cause);
552+
LOGGER.info("exceptionCaught", cause);
553553
exceptionThrownLatch.countDown();
554554
nextFilter.exceptionCaught(session, cause);
555555
}

0 commit comments

Comments
 (0)