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

    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

        1. FLUME-2150.patch
          1 kB
          Roshan Naik

        Activity

          People

            venkatnrangan Venkat Ranganathan
            roshan_naik Roshan Naik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: