Repository: incubator-slider Updated Branches: refs/heads/develop ff5f5f738 -> b8c3546aa
SLIDER-496 Enable TestClientBasicArgs#testListUnknownRM with short connection timeout Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/b8c3546a Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/b8c3546a Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/b8c3546a Branch: refs/heads/develop Commit: b8c3546aad98d00cbee0e9704e290838ab950698 Parents: ff5f5f7 Author: tedyu <[email protected]> Authored: Thu Oct 9 15:27:05 2014 -0700 Committer: tedyu <[email protected]> Committed: Thu Oct 9 15:27:05 2014 -0700 ---------------------------------------------------------------------- .../org/apache/slider/client/TestClientBasicArgs.groovy | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/b8c3546a/slider-core/src/test/groovy/org/apache/slider/client/TestClientBasicArgs.groovy ---------------------------------------------------------------------- diff --git a/slider-core/src/test/groovy/org/apache/slider/client/TestClientBasicArgs.groovy b/slider-core/src/test/groovy/org/apache/slider/client/TestClientBasicArgs.groovy index 1c4ab4f..99c2c31 100644 --- a/slider-core/src/test/groovy/org/apache/slider/client/TestClientBasicArgs.groovy +++ b/slider-core/src/test/groovy/org/apache/slider/client/TestClientBasicArgs.groovy @@ -18,6 +18,8 @@ package org.apache.slider.client +import org.apache.hadoop.yarn.conf.YarnConfiguration + import org.apache.slider.common.SliderExitCodes import org.apache.slider.common.params.Arguments import org.apache.slider.common.params.ClientArgs @@ -59,11 +61,14 @@ class TestClientBasicArgs extends ServiceLauncherBaseTest { // removed due to retry policy dicating 15 minutes of retries for the // generated UnknownHostExceptionj - //@Test + @Test public void testListUnknownRM() throws Throwable { try { + YarnConfiguration conf = SliderUtils.createConfiguration() + conf.setLong(YarnConfiguration.RESOURCEMANAGER_CONNECT_MAX_WAIT_MS, 1000) + conf.setLong(YarnConfiguration.RESOURCEMANAGER_CONNECT_RETRY_INTERVAL_MS, 1000) ServiceLauncher launcher = launch(SliderClient, - SliderUtils.createConfiguration(), + conf, [ ClientArgs.ACTION_LIST, "cluster",
