You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Sumit Mohanty (JIRA)" <ji...@apache.org> on 2014/07/08 20:28:06 UTC

[jira] [Commented] (SLIDER-218) Unit Test failure causing build failure

    [ https://issues.apache.org/jira/browse/SLIDER-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14055259#comment-14055259 ] 

Sumit Mohanty commented on SLIDER-218:
--------------------------------------

[~gsaha], can you delete the unit test condition at slider-core/src/test/groovy/org/apache/slider/providers/agent/TestBuildBasicAgent.groovy as not providing agent.ini is no longer a bad configuration. We can simply delete the test for "test_bad_agent_args-5".

You can then run only that test to verify the fix "mvn test -Dtest=TestBuildBasicAgent"

> Unit Test failure causing build failure
> ---------------------------------------
>
>                 Key: SLIDER-218
>                 URL: https://issues.apache.org/jira/browse/SLIDER-218
>             Project: Slider
>          Issue Type: Bug
>          Components: agent-provider
>    Affects Versions: Slider 0.40
>            Reporter: Sumit Mohanty
>            Assignee: Gour Saha
>             Fix For: Slider 0.40
>
>
> {noformat}
> java.io.FileNotFoundException: file:/Users/smohanty/.slider/cluster/test_bad_agent_args-5
> 	at org.apache.slider.core.persist.ConfPersister.acquireReadLock(ConfPersister.java:175)
> 	at org.apache.slider.core.persist.ConfPersister.load(ConfPersister.java:275)
> 	at org.apache.slider.providers.agent.TestBuildBasicAgent.loadInstanceDefinition(TestBuildBasicAgent.groovy:233)
> 	at org.apache.slider.providers.agent.TestBuildBasicAgent.failWithBuildSucceeding(TestBuildBasicAgent.groovy:458)
> 	at org.apache.slider.providers.agent.TestBuildBasicAgent.testBadAgentArgs(TestBuildBasicAgent.groovy:314)
> Results :
> Tests in error:
>   TestBuildBasicAgent.testBadAgentArgs:314->failWithBuildSucceeding:458->loadInstanceDefinition:233 ยป FileNotFound
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)