YongGoose commented on code in PR #7385: URL: https://github.com/apache/incubator-seata/pull/7385#discussion_r2127858045
########## server/src/test/java/org/apache/seata/server/raft/RaftServerTest.java: ########## @@ -92,4 +93,11 @@ public void initRaftServerFailByRaftPortNull() { Assertions.assertThrows(IllegalArgumentException.class, RaftServerManager::init); } + @AfterAll + public static void afterAll() { + LockerManagerFactory.destroy(); + SessionHolder.destroy(); + RaftServerManager.destroy(); Review Comment: Wouldn’t destory the `RaftServerManager` in `@AfterAll` potentially cause test failures if the test execution order changes? -- 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