Skip to content

Commit 5ddba75

Browse files
committed
Destroyed all framework model before each test of EagerThreadPoolExecutorTest
1 parent cfeca2b commit 5ddba75

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dubbo-common/src/test/java/org/apache/dubbo/common/threadpool/support/eager/EagerThreadPoolExecutorTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.apache.dubbo.common.url.component.ServiceConfigURL;
2424
import org.apache.dubbo.common.utils.NamedThreadFactory;
2525
import org.apache.dubbo.rpc.model.ApplicationModel;
26+
import org.apache.dubbo.rpc.model.FrameworkModel;
2627

2728
import java.util.concurrent.CountDownLatch;
2829
import java.util.concurrent.ExecutorService;
@@ -33,6 +34,7 @@
3334
import java.util.concurrent.atomic.AtomicReference;
3435

3536
import org.junit.jupiter.api.Assertions;
37+
import org.junit.jupiter.api.BeforeEach;
3638
import org.junit.jupiter.api.Disabled;
3739
import org.junit.jupiter.api.Test;
3840

@@ -42,6 +44,11 @@ class EagerThreadPoolExecutorTest {
4244

4345
private static final URL URL = new ServiceConfigURL("dubbo", "localhost", 8080);
4446

47+
@BeforeEach
48+
public void setUp() {
49+
FrameworkModel.destroyAll();
50+
}
51+
4552
/**
4653
* It print like this:
4754
* thread number in current pool:1, task number in task queue:0 executor size: 1

0 commit comments

Comments
 (0)