Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2536 Windows : Fix various unit test failures
  3. FLUME-2150

Windows: TestFileChannelEncryption needs to be a bit more conservative when examining the exception message

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 1.4.0
    • None
    • Windows

    Description

      Current assertion is :
      Assert.assertEquals("java.io.FileNotFoundException: /path/does/not/exist " + ...)

      On Windows the message is a bit different The tail end part /path/.. is not same.

      Suffices to check the prefix to be platform independent: Assert.assertTrue(ex.getMessage().startsWith("java.io.FileNotFoundException"));

      Attachments

        Activity

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

          People

            venkatnrangan Venkat Ranganathan
            roshan_naik Roshan Naik

            Dates

              Created:
              Updated:

              Slack

                Issue deployment