SLIDER-286 bug fix in waitUntilClusterLive
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/56083ecc Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/56083ecc Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/56083ecc Branch: refs/heads/feature/SLIDER-149_Support_a_YARN_service_registry Commit: 56083eccf49c4caf78f69d52e33c36bbe3754ba4 Parents: 1cbd890 Author: Steve Loughran <ste...@apache.org> Authored: Thu Aug 7 17:27:13 2014 +0100 Committer: Steve Loughran <ste...@apache.org> Committed: Thu Aug 7 17:27:13 2014 +0100 ---------------------------------------------------------------------- .../src/test/groovy/org/apache/slider/test/SliderTestUtils.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/56083ecc/slider-core/src/test/groovy/org/apache/slider/test/SliderTestUtils.groovy ---------------------------------------------------------------------- diff --git a/slider-core/src/test/groovy/org/apache/slider/test/SliderTestUtils.groovy b/slider-core/src/test/groovy/org/apache/slider/test/SliderTestUtils.groovy index a250e55..c5a8b36 100644 --- a/slider-core/src/test/groovy/org/apache/slider/test/SliderTestUtils.groovy +++ b/slider-core/src/test/groovy/org/apache/slider/test/SliderTestUtils.groovy @@ -205,7 +205,7 @@ class SliderTestUtils extends Assert { public static void waitUntilClusterLive(SliderClient client, int timeout) { Duration duration = new Duration(timeout); duration.start() - while (!client.actionExists(client.deployedClusterName, true) && + while (0 != client.actionExists(client.deployedClusterName, true) && !duration.limitExceeded) { sleep(1000); }