test: Fix potential flaky test cases in TracerTest (#1859)
This commit is contained in:
parent
7920243dec
commit
6f7d4d09e2
|
|
@ -17,12 +17,14 @@ public class TracerTest extends Tracer {
|
||||||
public void setUp() {
|
public void setUp() {
|
||||||
ContextTestUtil.cleanUpContext();
|
ContextTestUtil.cleanUpContext();
|
||||||
ContextTestUtil.resetContextMap();
|
ContextTestUtil.resetContextMap();
|
||||||
|
Tracer.exceptionPredicate = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@After
|
@After
|
||||||
public void tearDown() {
|
public void tearDown() {
|
||||||
ContextTestUtil.cleanUpContext();
|
ContextTestUtil.cleanUpContext();
|
||||||
ContextTestUtil.resetContextMap();
|
ContextTestUtil.resetContextMap();
|
||||||
|
Tracer.exceptionPredicate = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue