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

Tsz Wo Nicholas Sze commented on RATIS-494:
-------------------------------------------

r494_20190305b.patch: fixes the javac warnings.

> Throw AssumptionViolatedException if a test fails to change leader
> ------------------------------------------------------------------
>
>                 Key: RATIS-494
>                 URL: https://issues.apache.org/jira/browse/RATIS-494
>             Project: Ratis
>          Issue Type: Bug
>          Components: test
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>            Priority: Minor
>         Attachments: r494_20190305.patch, r494_20190305b.patch
>
>
> In some (unlucky) cases, tests may fail to change leader which leads to a 
> failure.  Testing leader change is not an objective of the particular tests.  
> When leader change fails, these tests becomes meaningless.
> We may throw AssumptionViolatedException (new in junit 4.12) so that failing 
> to change leader won't generate a test case failure.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to