You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/03/14 12:58:31 UTC
[incubator-skywalking] branch async-context updated: Fix test cases.
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch async-context
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git
The following commit(s) were added to refs/heads/async-context by this push:
new 584cd54 Fix test cases.
new 5a2b223 Merge branch 'async-context' of https://github.com/apache/incubator-skywalking into async-context
584cd54 is described below
commit 584cd540d40846f742003c5586289b0b49ffe46d
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Thu Mar 14 20:58:00 2019 +0800
Fix test cases.
---
.../apache/skywalking/apm/agent/core/boot/ServiceManagerTest.java | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/apm-sniffer/apm-agent-core/src/test/java/org/apache/skywalking/apm/agent/core/boot/ServiceManagerTest.java b/apm-sniffer/apm-agent-core/src/test/java/org/apache/skywalking/apm/agent/core/boot/ServiceManagerTest.java
index afe858d..4622349 100644
--- a/apm-sniffer/apm-agent-core/src/test/java/org/apache/skywalking/apm/agent/core/boot/ServiceManagerTest.java
+++ b/apm-sniffer/apm-agent-core/src/test/java/org/apache/skywalking/apm/agent/core/boot/ServiceManagerTest.java
@@ -69,16 +69,13 @@ public class ServiceManagerTest {
private void assertIgnoreTracingContextListener() throws Exception {
List<TracingContextListener> listeners = getFieldValue(IgnoredTracerContext.ListenerManager.class, "LISTENERS");
- assertThat(listeners.size(), is(1));
-
- assertThat(listeners.contains(ServiceManager.INSTANCE.findService(ContextManager.class)), is(true));
+ assertThat(listeners.size(), is(0));
}
private void assertTracingContextListener() throws Exception {
List<TracingContextListener> listeners = getFieldValue(TracingContext.ListenerManager.class, "LISTENERS");
- assertThat(listeners.size(), is(2));
+ assertThat(listeners.size(), is(1));
- assertThat(listeners.contains(ServiceManager.INSTANCE.findService(ContextManager.class)), is(true));
assertThat(listeners.contains(ServiceManager.INSTANCE.findService(TraceSegmentServiceClient.class)), is(true));
}