Repository: incubator-slider
Updated Branches:
  refs/heads/develop 67938ee99 -> 9e58112d0


SLIDER-785 AgentClusterLifecycleIT failing if >1 slider instance running in the 
test cluster


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/9e58112d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/9e58112d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/9e58112d

Branch: refs/heads/develop
Commit: 9e58112d034cdb0195b340ca4e5fb6c11326b332
Parents: 67938ee
Author: Steve Loughran <[email protected]>
Authored: Mon Feb 16 14:39:33 2015 +0000
Committer: Steve Loughran <[email protected]>
Committed: Mon Feb 16 14:39:33 2015 +0000

----------------------------------------------------------------------
 .../slider/funtest/lifecycle/AgentClusterLifecycleIT.groovy | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/9e58112d/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentClusterLifecycleIT.groovy
----------------------------------------------------------------------
diff --git 
a/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentClusterLifecycleIT.groovy
 
b/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentClusterLifecycleIT.groovy
index 0bc4e39..ca9f71b 100644
--- 
a/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentClusterLifecycleIT.groovy
+++ 
b/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentClusterLifecycleIT.groovy
@@ -149,13 +149,18 @@ public class AgentClusterLifecycleIT extends 
AgentCommandTestBase
       //condition returns false if it is required to be live
       exists(EXIT_FALSE, CLUSTER, true)
 
+      // list cluster state
+      // it is known about
       list( 0, [CLUSTER])
+      // it has finished
       list( 0, [CLUSTER, ARG_STATE, "FINISHED"])
+      // it is not live
       list(-1, [CLUSTER, ARG_LIVE])
+      // it is not running
       list(-1, [CLUSTER, ARG_STATE, "running"])
 
-      list(-1, [ARG_LIVE])
-      list(-1, [ARG_STATE, "running"])
+      // therefore, there is at least one cluster
+      // that has finished
       list( 0, [ARG_STATE, "FINISHED"])
 
       def thawReport = createTempJsonFile()

Reply via email to