no jira - fix intermittent checkthreadrule failure in JDBCJournalTest

This commit is contained in:
gtully 2021-06-03 11:28:39 +01:00
parent 0e77f93f83
commit 9484e49ab0
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,8 @@ public class JDBCJournalTest extends ActiveMQTestBase {
System.clearProperty("derby.connection.requireAuthentication"); System.clearProperty("derby.connection.requireAuthentication");
System.clearProperty("derby.user." + getJdbcUser()); System.clearProperty("derby.user." + getJdbcUser());
} }
scheduledExecutorService.shutdown(); scheduledExecutorService.shutdownNow();
scheduledExecutorService.awaitTermination(5, TimeUnit.SECONDS);
scheduledExecutorService = null; scheduledExecutorService = null;
executorService.shutdown(); executorService.shutdown();
executorService = null; executorService = null;