You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mark Thomas (JIRA)" <ji...@apache.org> on 2012/08/01 10:24:35 UTC

[jira] [Commented] (POOL-228) Unit test failure in TestGenericObjectPoolClassLoaders

    [ https://issues.apache.org/jira/browse/POOL-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426374#comment-13426374 ] 

Mark Thomas commented on POOL-228:
----------------------------------

No confusion here. I was looking at the 1.6.x code.

Look at the code for the Evictor.run(). It calls ensureMinIdle(). You need to do some debugging to find out why that method isn't called / doesn't work on your system.

There might be a timing problem with the test. Try increasing the length of the sleep.
                
> Unit test failure in TestGenericObjectPoolClassLoaders
> ------------------------------------------------------
>
>                 Key: POOL-228
>                 URL: https://issues.apache.org/jira/browse/POOL-228
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: 1.6
>            Reporter: Liviu Tudor
>            Priority: Minor
>              Labels: junit
>             Fix For: 1.6.1
>
>
> Following error encountered when running unit tests:
> {noformat}
> Results :
> Failed tests:   testContextClassLoader(org.apache.commons.pool.impl.TestGenericObjectPoolClassLoaders): Wrong number of idle objects in pool1 expected:<1> but was:<0>
> Tests run: 263, Failures: 1, Errors: 0, Skipped: 0
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira