From 570cd47d9a47f93efcee835a47e40bdffe7046a6 Mon Sep 17 00:00:00 2001 From: TestBoost <153348110+TestBoost@users.noreply.github.com> Date: Thu, 14 Dec 2023 05:12:27 -0600 Subject: [PATCH] only call DubboBootstrap.reset(); once to make the test org.apache.dubbo.generic.GenericServiceTest faster (#13466) --- .../java/org/apache/dubbo/generic/GenericServiceTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dubbo-compatible/src/test/java/org/apache/dubbo/generic/GenericServiceTest.java b/dubbo-compatible/src/test/java/org/apache/dubbo/generic/GenericServiceTest.java index 26f99a6f2d6..65200169ac2 100644 --- a/dubbo-compatible/src/test/java/org/apache/dubbo/generic/GenericServiceTest.java +++ b/dubbo-compatible/src/test/java/org/apache/dubbo/generic/GenericServiceTest.java @@ -42,13 +42,13 @@ import com.alibaba.dubbo.config.ReferenceConfig; import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; class GenericServiceTest { - @BeforeEach - public void beforeEach() { + @BeforeAll + public static void beforeAll() { DubboBootstrap.reset(); }