You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by wu...@apache.org on 2018/01/04 15:19:24 UTC
[incubator-skywalking] branch adjust-network-proto updated: Fix
test cases
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch adjust-network-proto
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git
The following commit(s) were added to refs/heads/adjust-network-proto by this push:
new d934ec5 Fix test cases
d934ec5 is described below
commit d934ec53f2025262e98a20ae2e62c3f00f181261
Author: wusheng <wu...@foxmail.com>
AuthorDate: Thu Jan 4 23:19:17 2018 +0800
Fix test cases
---
.../provider/handler/ApplicationRegisterServiceHandlerTestCase.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/apm-collector/apm-collector-agent/agent-grpc/agent-grpc-provider/src/test/java/org/apache/skywalking/apm/collector/agent/grpc/provider/handler/ApplicationRegisterServiceHandlerTestCase.java b/apm-collector/apm-collector-agent/agent-grpc/agent-grpc-provider/src/test/java/org/apache/skywalking/apm/collector/agent/grpc/provider/handler/ApplicationRegisterServiceHandlerTestCase.java
index b8920e6..aa29ffb 100644
--- a/apm-collector/apm-collector-agent/agent-grpc/agent-grpc-provider/src/test/java/org/apache/skywalking/apm/collector/agent/grpc/provider/handler/ApplicationRegisterServiceHandlerTestCase.java
+++ b/apm-collector/apm-collector-agent/agent-grpc/agent-grpc-provider/src/test/java/org/apache/skywalking/apm/collector/agent/grpc/provider/handler/ApplicationRegisterServiceHandlerTestCase.java
@@ -21,6 +21,7 @@ package org.apache.skywalking.apm.collector.agent.grpc.provider.handler;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import org.apache.skywalking.apm.network.proto.Application;
+import org.apache.skywalking.apm.network.proto.ApplicationMapping;
import org.apache.skywalking.apm.network.proto.ApplicationMappings;
import org.apache.skywalking.apm.network.proto.ApplicationRegisterServiceGrpc;
import org.slf4j.Logger;
@@ -40,7 +41,7 @@ public class ApplicationRegisterServiceHandlerTestCase {
stub = ApplicationRegisterServiceGrpc.newBlockingStub(channel);
Application application = Application.newBuilder().setApplicationCode("test141").build();
- ApplicationMappings mapping = stub.applicationCodeRegister(application);
- logger.debug(mapping.getApplications(0).getKey() + ", " + mapping.getApplications(0).getValue());
+ ApplicationMapping mapping = stub.applicationCodeRegister(application);
+ logger.debug(mapping.getApplication().getKey() + ", " + mapping.getApplication().getValue());
}
}
--
To stop receiving notification emails like this one, please contact
['"commits@skywalking.apache.org" <co...@skywalking.apache.org>'].