[ 
https://issues.apache.org/activemq/browse/CAMEL-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53795#action_53795
 ] 

Christian Schneider commented on CAMEL-1934:
--------------------------------------------

Hi Willem,

perhaps you can also fix two minor errors in the test HttpStreamCacheFileTest.
In the assertions the expected and actual values are in the wrong order.

This is how it should be:
assertEquals("There should be no files", 0, files.length);

Greetings

Christian

> Unit test failure in Windows for StreamCache. Temp file is not deleted
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-1934
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1934
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jetty
>    Affects Versions: 2.0.0
>         Environment: Windows Vista 32 Bit, JDK 1.6.0_14 and maven 2.2.0 
>            Reporter: Christian Schneider
>            Assignee: Willem Jiang
>             Fix For: 2.1.0
>
>
> The temporary file is not deleted. I think the file is still open in some 
> other stream. The problem is I have no idea how to find this place. Like in 
> issue    CAMEL-1924 this only happens on windows as on unix you can delete a 
> file even if there are open streams.
> testStreamCacheToFileShouldBeDeletedInCaseOfException
>       java.lang.AssertionError: There should be no files expected:<1> but 
> was:<0>
>       
> org.apache.camel.component.jetty.HttpStreamCacheFileTest:71

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to