Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-494

Throw AssumptionViolatedException if a test fails to change leader

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.3.0
    • test
    • None

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            szetszwo Tsz-wo Sze
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment