diff --git a/test/src/test/java/org/apache/seata/core/rpc/netty/mockserver/MockServerTest.java b/test/src/test/java/org/apache/seata/core/rpc/netty/mockserver/MockServerTest.java index 4ec24de66fd..8493d3d16b4 100644 --- a/test/src/test/java/org/apache/seata/core/rpc/netty/mockserver/MockServerTest.java +++ b/test/src/test/java/org/apache/seata/core/rpc/netty/mockserver/MockServerTest.java @@ -37,11 +37,6 @@ public static void before() { MockServer.start(); } - @AfterAll - public static void after() { - MockServer.close(); - } - @Test public void testCommit() throws TransactionException { String xid = doTestCommit(0); diff --git a/test/src/test/java/org/apache/seata/core/rpc/netty/mockserver/RmClientTest.java b/test/src/test/java/org/apache/seata/core/rpc/netty/mockserver/RmClientTest.java index ef974a9b227..381936a9e79 100644 --- a/test/src/test/java/org/apache/seata/core/rpc/netty/mockserver/RmClientTest.java +++ b/test/src/test/java/org/apache/seata/core/rpc/netty/mockserver/RmClientTest.java @@ -50,10 +50,7 @@ public static void before() { MockServer.start(); } - @AfterAll - public static void after() { - MockServer.close(); - } + @Test public void testRm() throws TransactionException { diff --git a/test/src/test/java/org/apache/seata/core/rpc/netty/mockserver/TmClientTest.java b/test/src/test/java/org/apache/seata/core/rpc/netty/mockserver/TmClientTest.java index f39d95c8de4..459c27499d0 100644 --- a/test/src/test/java/org/apache/seata/core/rpc/netty/mockserver/TmClientTest.java +++ b/test/src/test/java/org/apache/seata/core/rpc/netty/mockserver/TmClientTest.java @@ -45,10 +45,6 @@ public static void before() { MockServer.start(); } - @AfterAll - public static void after() { - MockServer.close(); - } @Test public void testTm() throws Exception {