quantranhong1999 commented on code in PR #2029:
URL: https://github.com/apache/james-project/pull/2029#discussion_r1505331219
##########
backends-common/postgres/src/test/java/org/apache/james/backends/postgres/PostgresExtension.java:
##########
@@ -178,6 +178,10 @@ public void beforeEach(ExtensionContext extensionContext) {
@Override
public void afterEach(ExtensionContext extensionContext) {
resetSchema();
+
+ if (!rlsEnabled) {
+ dropAllConnections();
+ }
Review Comment:
Another way without introducing more code: move `disposePostgresSession`
from `afterAll` to `afterEach`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]