diff --git a/dhis-2/dhis-support/dhis-support-test/src/main/java/org/hisp/dhis/test/BaseSpringTest.java b/dhis-2/dhis-support/dhis-support-test/src/main/java/org/hisp/dhis/test/BaseSpringTest.java index 9e5766c2dfda..e71bec205046 100644 --- a/dhis-2/dhis-support/dhis-support-test/src/main/java/org/hisp/dhis/test/BaseSpringTest.java +++ b/dhis-2/dhis-support/dhis-support-test/src/main/java/org/hisp/dhis/test/BaseSpringTest.java @@ -75,11 +75,6 @@ protected void tearDownTest() throws Exception {} protected void nonTransactionalAfter() throws Exception { clearSecurityContext(); tearDownTest(); - try { - dbmsManager.clearSession(); - } catch (Exception e) { - log.error("Failed to clear hibernate session, reason: {}", e.getMessage(), e); - } unbindSession(); transactionTemplate.execute( status -> { diff --git a/dhis-2/dhis-test-integration/src/test/java/org/hisp/dhis/test/integration/TransactionalIntegrationTest.java b/dhis-2/dhis-test-integration/src/test/java/org/hisp/dhis/test/integration/TransactionalIntegrationTest.java index 4d9098bcf643..6ec5fa292eb9 100644 --- a/dhis-2/dhis-test-integration/src/test/java/org/hisp/dhis/test/integration/TransactionalIntegrationTest.java +++ b/dhis-2/dhis-test-integration/src/test/java/org/hisp/dhis/test/integration/TransactionalIntegrationTest.java @@ -77,11 +77,5 @@ public final void after() throws Exception { clearSecurityContext(); tearDownTest(); - - try { - dbmsManager.clearSession(); - } catch (Exception e) { - log.info("Failed to clear hibernate session, reason:" + e.getMessage()); - } } }