[
https://issues.apache.org/jira/browse/RATIS-494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz Wo Nicholas Sze updated RATIS-494:
--------------------------------------
Attachment: r494_20190305.patch
> 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
>
>
> 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)