Repository: incubator-slider
Updated Branches:
  refs/heads/develop 720bd19df -> 97498ec31


SLIDER-1251 AASleepIT test fails to reach expected count


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

Branch: refs/heads/develop
Commit: 97498ec312475bbb51e5bf3c1b846ddb54c12d3c
Parents: 720bd19
Author: Gour Saha <gourks...@apache.org>
Authored: Wed Oct 11 22:40:01 2017 -0700
Committer: Gour Saha <gourks...@apache.org>
Committed: Wed Oct 11 22:40:01 2017 -0700

----------------------------------------------------------------------
 .../apache/slider/funtest/lifecycle/AASleepIT.groovy   | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/97498ec3/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AASleepIT.groovy
----------------------------------------------------------------------
diff --git 
a/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AASleepIT.groovy
 
b/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AASleepIT.groovy
index f070ce3..0466e15 100644
--- 
a/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AASleepIT.groovy
+++ 
b/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AASleepIT.groovy
@@ -142,15 +142,12 @@ public class AASleepIT extends AgentCommandTestBase
       int expected,
       NodeInformationList healthyNodes) {
 
-    // now here await for the cluster size to grow: if it does, there's a 
problem
-    // spin for a while and fail if the number ever goes above it.
-    ClusterDescription cd = null
-    (desired * 5).times {
-      cd = assertContainersLive(NAME, SLEEP_LONG, expected)
-      sleep(1000 * 10)
-    }
+    // the cluster size should not grow. wait for a while and fail
+    // if it does.
+    sleep(1000 * 10)
+    ClusterDescription cd = assertContainersLive(NAME, SLEEP_LONG, expected)
 
-    // here cluster is still 1 below expected
+    // here cluster is still 1 below desired
     def role = cd.getRole(SLEEP_LONG)
     assert "1" == role.get(RoleKeys.ROLE_PENDING_AA_INSTANCES)
     assert 1 == 
cd.statistics[SLEEP_LONG][StatusKeys.STATISTICS_CONTAINERS_ANTI_AFFINE_PENDING]

Reply via email to