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

Steve Loughran commented on SLIDER-886:
---------------------------------------

assert is wrong. It's looking for either of two outcomes, but as one half of 
the test (i.e. one outcome) is comparing the same source field it will always 
be false. If the alternate condition is not met, the test will (mistakenly) fail

> TestZKIntegration.testListUserClustersWithTwoCluster failing on windows
> -----------------------------------------------------------------------
>
>                 Key: SLIDER-886
>                 URL: https://issues.apache.org/jira/browse/SLIDER-886
>             Project: Slider
>          Issue Type: Sub-task
>          Components: build
>    Affects Versions: Slider 0.90
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>             Fix For: Slider 2.0.0
>
>
> {code}
> Failed tests:
>   TestZKIntegration.testListUserClustersWithTwoCluster:103 assert 
> (c1.endsWith(clusters[0]) && c1.endsWith(clusters[1]))
>  || (c1.endsWith(clusters[1]) && c2.endsWith(clusters[0]))
>         |  |        |       |    |  |  |        |       |     |   |  |        
> |       |    |
>         |  true     |       |    |  |  false    |       |     |   |  false    
> |       |    false
>         |           |       |    |  |           |       |     |   |           
> |       cluster-0000000001
>         |           |       |    |  |           |       |     |   |           
> [cluster-0000000000, cluster-0000000001]
>         |           |       |    |  |           |       |     |   
> /services/slider/users/bigdataborat/cluster-0000000000
>         |           |       |    |  |           |       |     false
>         |           |       |    |  |           |       cluster-0000000001
>         |           |       |    |  |           [cluster-0000000000, 
> cluster-0000000001]
>         |           |       |    |  
> /services/slider/users/bigdataborat/cluster-0000000000
>         |           |       |    false
>         |           |       cluster-0000000000
>         |           [cluster-0000000000, cluster-0000000001]
>         /services/slider/users/bigdataborat/cluster-0000000000
>   TestAgentClientProvider2.testRunCommand:225
>   Unexpected constructor call java.lang.ProcessBuilder([python, -S, 
> C:\tmp\pkg\package\scripts/abc.py, INSTALL, C:\tmp\c
> md\command.json, C:\tmp\pkg\package, C:\tmp\cmd\command-out.json, DEBUG]):
>     java.lang.ProcessBuilder([python, -S, /tmp/pkg/package/scripts/abc.py, 
> INSTALL, /tmp/cmd/command.json, /tmp/pkg/pack
> age, /tmp/cmd/command-out.json, DEBUG]): expected: 1, actual: 0
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to