Browse Source

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

master
zcai2 GitHub 4 years ago
parent
commit
6f7d4d09e2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  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 View File

@@ -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


Loading…
Cancel
Save