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

    • Type: Sub-task
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: Windows
    • Labels:

      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

            People

            • Assignee:
              venkatnrangan Venkat Ranganathan
              Reporter:
              roshan_naik Roshan Naik

              Dates

              • Created:
                Updated:

                Issue deployment