You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by st...@apache.org on 2014/11/02 15:25:29 UTC
[17/50] git commit: SLIDER-591 regression: ListCommandIT broken with
changed exit codes
SLIDER-591 regression: ListCommandIT broken with changed exit codes
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/fdcc5c2c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/fdcc5c2c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/fdcc5c2c
Branch: refs/heads/feature/SLIDER-531-registry-enhancements
Commit: fdcc5c2cfaa60d4a80506dc9e141e824a5fdc1b2
Parents: e771352
Author: Steve Loughran <st...@apache.org>
Authored: Thu Oct 30 23:09:11 2014 +0000
Committer: Steve Loughran <st...@apache.org>
Committed: Thu Oct 30 23:09:11 2014 +0000
----------------------------------------------------------------------
.../org/apache/slider/funtest/commands/ListCommandIT.groovy | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/fdcc5c2c/slider-funtest/src/test/groovy/org/apache/slider/funtest/commands/ListCommandIT.groovy
----------------------------------------------------------------------
diff --git a/slider-funtest/src/test/groovy/org/apache/slider/funtest/commands/ListCommandIT.groovy b/slider-funtest/src/test/groovy/org/apache/slider/funtest/commands/ListCommandIT.groovy
index c65280a..916117c 100644
--- a/slider-funtest/src/test/groovy/org/apache/slider/funtest/commands/ListCommandIT.groovy
+++ b/slider-funtest/src/test/groovy/org/apache/slider/funtest/commands/ListCommandIT.groovy
@@ -20,6 +20,7 @@ package org.apache.slider.funtest.commands
import groovy.transform.CompileStatic
import groovy.util.logging.Slf4j
+import org.apache.slider.core.main.LauncherExitCodes
import org.apache.slider.funtest.framework.CommandTestBase
import org.junit.BeforeClass
import org.junit.Test
@@ -36,13 +37,7 @@ public class ListCommandIT extends CommandTestBase {
@Test
public void testListAllLive() throws Throwable {
def shell = list("--live")
- assert shell.ret == 0 || shell.ret == 1
- }
-
- @Test
- public void testListAllFinishedLive() throws Throwable {
- def shell = list("--live")
- assert shell.ret == 0 || shell.ret == 1
+ assert shell.ret == 0 || shell.ret == LauncherExitCodes.EXIT_FALSE
}
}