funky-eyes commented on code in PR #7580:
URL: https://github.com/apache/incubator-seata/pull/7580#discussion_r2268981556


##########
server/src/test/java/org/apache/seata/server/DynamicPortTestConfig.java:
##########


Review Comment:
   @YongGoose It's still not working, because all the Spring Boot contexts in 
the test classes end up being reused, even though the ports are randomized. So 
I ultimately used `@DirtiesContext(classMode = 
DirtiesContext.ClassMode.BEFORE_CLASS)` to ensure that each test case has an 
isolated context. Although this increases the overall test duration, it seems 
to be effective.



-- 
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: notifications-unsubscr...@seata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to