Skip to content

Commit 5d2a7c3

Browse files
committed
optimize testcase
1 parent 98e42de commit 5d2a7c3

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

framework/src/test/java/org/tron/core/net/services/EffectiveCheckServiceTest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
import javax.annotation.Resource;
66
import org.junit.Assert;
77
import org.junit.BeforeClass;
8-
import org.junit.Rule;
98
import org.junit.Test;
10-
import org.junit.rules.TemporaryFolder;
119
import org.tron.common.BaseTest;
1210
import org.tron.common.utils.ReflectUtils;
1311
import org.tron.core.Constant;
@@ -23,10 +21,6 @@ public class EffectiveCheckServiceTest extends BaseTest {
2321
@Resource
2422
private TronNetService tronNetService;
2523

26-
27-
@Rule
28-
public final TemporaryFolder temporaryFolder = new TemporaryFolder();
29-
3024
@BeforeClass
3125
public static void init() {
3226
Args.setParam(new String[] {"--output-directory", dbPath(), "--debug"},

framework/src/test/java/org/tron/core/services/filter/LiteFnQueryGrpcInterceptorTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ public static void init() throws IOException {
9090
@AfterClass
9191
public static void destroy() throws InterruptedException {
9292
if (channelFull != null) {
93-
channelFull.shutdown().awaitTermination(5, TimeUnit.SECONDS);
93+
channelFull.shutdown();
9494
}
9595
if (channelSolidity != null) {
96-
channelSolidity.shutdown().awaitTermination(5, TimeUnit.SECONDS);
96+
channelSolidity.shutdown();
9797
}
9898
if (channelpBFT != null) {
99-
channelpBFT.shutdown().awaitTermination(5, TimeUnit.SECONDS);
99+
channelpBFT.shutdown();
100100
}
101101
context.close();
102102
Args.clearParam();

0 commit comments

Comments
 (0)