浏览代码

test: Fix potential flaky test cases in TracerTest (#1859)

master
zcai2 GitHub 4 年前
父节点
当前提交
6f7d4d09e2
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      sentinel-core/src/test/java/com/alibaba/csp/sentinel/TracerTest.java

+ 2
- 0
sentinel-core/src/test/java/com/alibaba/csp/sentinel/TracerTest.java 查看文件

@@ -17,12 +17,14 @@ public class TracerTest extends Tracer {
public void setUp() {
ContextTestUtil.cleanUpContext();
ContextTestUtil.resetContextMap();
Tracer.exceptionPredicate = null;
}

@After
public void tearDown() {
ContextTestUtil.cleanUpContext();
ContextTestUtil.resetContextMap();
Tracer.exceptionPredicate = null;
}

@Test


正在加载...
取消
保存