From 6f7d4d09e2082381c7e11d02d82fecce5e9984a0 Mon Sep 17 00:00:00 2001 From: zcai2 Date: Thu, 26 Nov 2020 19:52:14 -0600 Subject: [PATCH] test: Fix potential flaky test cases in TracerTest (#1859) --- .../src/test/java/com/alibaba/csp/sentinel/TracerTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sentinel-core/src/test/java/com/alibaba/csp/sentinel/TracerTest.java b/sentinel-core/src/test/java/com/alibaba/csp/sentinel/TracerTest.java index 7acb3d7e..3f383377 100644 --- a/sentinel-core/src/test/java/com/alibaba/csp/sentinel/TracerTest.java +++ b/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