[ 
https://issues.apache.org/jira/browse/FLUME-2150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roshan Naik updated FLUME-2150:
-------------------------------
    Labels: windows  (was: )

> Windows:  TestFileChannelEncryption needs to be a bit more conservative when 
> examining the exception message
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: FLUME-2150
>                 URL: https://issues.apache.org/jira/browse/FLUME-2150
>             Project: Flume
>          Issue Type: Bug
>          Components: Windows
>    Affects Versions: v1.4.0
>            Reporter: Roshan Naik
>            Assignee: Roshan Naik
>              Labels: windows
>         Attachments: FLUME-2150.patch
>
>
> 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"));



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to