curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jordan Zimmerman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CURATOR-333) TestCleanState can hide test assertions
Date Thu, 26 May 2016 22:04:13 GMT

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

Jordan Zimmerman commented on CURATOR-333:
------------------------------------------

Note, while working on this I found CURATOR-332

> TestCleanState can hide test assertions
> ---------------------------------------
>
>                 Key: CURATOR-333
>                 URL: https://issues.apache.org/jira/browse/CURATOR-333
>             Project: Apache Curator
>          Issue Type: Test
>          Components: Tests
>    Affects Versions: 3.1.0
>            Reporter: Jordan Zimmerman
>            Assignee: Jordan Zimmerman
>             Fix For: TBD
>
>
> TestCleanState is used in finally blocks in lots of tests to close the Curator handle
and check for cleaned watchers. However, being in a finally, it always runs. If there is an
exception or assertion, it will run and always fail hiding the real error.



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

Mime
View raw message