Repository: incubator-slider Updated Branches: refs/heads/develop 0f04fc5ee -> 585fc4c0a
Fix TestActionInstallPackage test failure by referencing constant from SliderClient Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/585fc4c0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/585fc4c0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/585fc4c0 Branch: refs/heads/develop Commit: 585fc4c0a6821efa2e23e87b450a738bc5c11b5a Parents: 0f04fc5 Author: tedyu <[email protected]> Authored: Wed Apr 29 14:57:09 2015 -0700 Committer: tedyu <[email protected]> Committed: Wed Apr 29 14:57:09 2015 -0700 ---------------------------------------------------------------------- .../apache/slider/agent/actions/TestActionInstallPackage.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/585fc4c0/slider-core/src/test/groovy/org/apache/slider/agent/actions/TestActionInstallPackage.groovy ---------------------------------------------------------------------- diff --git a/slider-core/src/test/groovy/org/apache/slider/agent/actions/TestActionInstallPackage.groovy b/slider-core/src/test/groovy/org/apache/slider/agent/actions/TestActionInstallPackage.groovy index 2cc2431..2443842 100644 --- a/slider-core/src/test/groovy/org/apache/slider/agent/actions/TestActionInstallPackage.groovy +++ b/slider-core/src/test/groovy/org/apache/slider/agent/actions/TestActionInstallPackage.groovy @@ -125,7 +125,7 @@ class TestActionInstallPackage extends AgentMiniClusterTestBase { ) fail("expected an exception, got a status code " + launcher.serviceExitCode) } catch (BadCommandArgumentsException e) { - assert e.message.contains("Unable to access supplied pkg file at") + assert e.message.contains(SliderClient.E_UNABLE_TO_READ_SUPPLIED_PACKAGE_FILE) } }
