Skip to content

Commit

Permalink
fix: Remove clear session log error in tests (#18109)
Browse files Browse the repository at this point in the history
* fix: Remove clear session log error in tests

* fix: Remove clear session log error in tests

* fix: Remove clear session in integrational tests
  • Loading branch information
enricocolasante authored Jul 19, 2024
1 parent eae9847 commit 9986538
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}

0 comments on commit 9986538

Please sign in to comment.