liubao68 commented on a change in pull request #1664: [SCB-1822]fix problems 
when using multiple consumer interface for one…
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/1664#discussion_r398982123
 
 

 ##########
 File path: 
demo/demo-springmvc/springmvc-client/src/main/java/org/apache/servicecomb/demo/springmvc/client/TestDateTimeSchema.java
 ##########
 @@ -92,4 +119,39 @@ private void testDateTimeSchema() {
         dateTimeSchemaInf.postLocalDateTime(localDateTime)
             .format(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS")));
   }
+
+  private void testDateTimeSchemaMulticast() {
+    DiscoveryContext context = new DiscoveryContext();
+    VersionedCache serversVersionedCache = discoveryTree.discovery(context, 
"springmvctest", "springmvc", "0+");
+    List<String> enpoints = serversVersionedCache.data();
+
+    for (String endpoint : enpoints) {
+      InvocationContext invocationContext = new InvocationContext();
+      
invocationContext.addLocalContext(LoadbalanceHandler.SERVICECOMB_SERVER_ENDPOINT,
 endpoint);
+      Date date = new Date();
+      TestMgr.check(date.getTime(), 
dateTimeSchemaWithContextInf.getDate(invocationContext, date).getTime());
 
 Review comment:
   we have to now, because LoadBalanceHandler read string endpoint. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to