Should clear scope after flux test

This commit is contained in:
Marcin Grzejszczak
2021-02-26 10:13:38 +01:00
parent 1c6c1ce666
commit 081171b699

View File

@@ -32,6 +32,7 @@ import brave.sampler.Sampler;
import brave.test.TestSpanHandler;
import org.apache.commons.lang3.StringUtils;
import org.awaitility.Awaitility;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -89,10 +90,11 @@ public class SleuthSpanCreatorAspectFluxTests {
}
@Before
@After
public void setup() {
this.spans.clear();
this.testBean.reset();
tracer.withSpanInScope(null);
this.tracer.withSpanInScope(null);
}
@Test