You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by je...@apache.org on 2018/08/29 03:27:34 UTC

[geode] branch develop updated: GEODE-5636: DescribeClientCommandDUnitTest fails on Windows (#2382)

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

jensdeppe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 238706c  GEODE-5636: DescribeClientCommandDUnitTest fails on Windows (#2382)
238706c is described below

commit 238706c1c851a6ae8c11ed216354cf2599917256
Author: Jens Deppe <jd...@pivotal.io>
AuthorDate: Tue Aug 28 20:27:27 2018 -0700

    GEODE-5636: DescribeClientCommandDUnitTest fails on Windows (#2382)
---
 .../internal/cli/commands/DescribeClientCommandDUnitTest.java        | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/geode-cq/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/DescribeClientCommandDUnitTest.java b/geode-cq/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/DescribeClientCommandDUnitTest.java
index 96554bb..3b5c1d7 100644
--- a/geode-cq/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/DescribeClientCommandDUnitTest.java
+++ b/geode-cq/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/DescribeClientCommandDUnitTest.java
@@ -119,8 +119,9 @@ public class DescribeClientCommandDUnitTest {
 
   private void validateResults(boolean subscriptionEnabled) {
     CommandResult result = gfsh.executeCommand("list members");
-    // list is always locator-0, server-1, server-2
-    String server1 = result.getTableColumnValues("members", "Id").get(1);
+    Map<String, List<String>> members = result.getMapFromTableContent("members");
+    int server1Idx = members.get("Name").indexOf("server-1");
+    String server1 = members.get("Id").get(server1Idx);
 
     result = gfsh.executeCommand("list clients");
     String clientId = result.getColumnFromTableContent(CliStrings.LIST_CLIENT_COLUMN_Clients,