You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by wu...@apache.org on 2018/01/09 07:38:54 UTC

[incubator-servicecomb-java-chassis] 03/03: [JAV-587] fix CI error

This is an automated email from the ASF dual-hosted git repository.

wujimin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git

commit 3a21eb309be61e1716430be1875b45cbb7f244b3
Author: yaohaishi <ya...@huawei.com>
AuthorDate: Thu Jan 4 15:28:20 2018 +0800

    [JAV-587] fix CI error
---
 .../java/io/servicecomb/demo/pojo/test/endpoints/TestImpl.java     | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/integration-tests/pojo-test/src/test/java/io/servicecomb/demo/pojo/test/endpoints/TestImpl.java b/integration-tests/pojo-test/src/test/java/io/servicecomb/demo/pojo/test/endpoints/TestImpl.java
index 91b4b43..f3e066d 100644
--- a/integration-tests/pojo-test/src/test/java/io/servicecomb/demo/pojo/test/endpoints/TestImpl.java
+++ b/integration-tests/pojo-test/src/test/java/io/servicecomb/demo/pojo/test/endpoints/TestImpl.java
@@ -20,10 +20,12 @@ package io.servicecomb.demo.pojo.test.endpoints;
 import java.util.Arrays;
 import java.util.List;
 
+import io.servicecomb.core.Const;
 import io.servicecomb.demo.server.Test;
 import io.servicecomb.demo.server.TestRequest;
 import io.servicecomb.demo.server.User;
 import io.servicecomb.provider.pojo.RpcSchema;
+import io.servicecomb.swagger.invocation.context.ContextUtils;
 import io.servicecomb.swagger.invocation.exception.InvocationException;
 
 @RpcSchema(schemaId = "server")
@@ -99,4 +101,9 @@ public class TestImpl implements Test {
     System.out.println("addString: " + result);
     return result;
   }
+
+  @Override
+  public String testTraceId() {
+    return ContextUtils.getInvocationContext().getContext(Const.TRACE_ID_NAME);
+  }
 }

-- 
To stop receiving notification emails like this one, please contact
"commits@servicecomb.apache.org" <co...@servicecomb.apache.org>.