On Thu, May 16, 2013 at 6:30 PM, Mark Thomas <ma...@apache.org> wrote:
> On 16/05/2013 20:58, Gary Gregory wrote: > > TestGenericObjectPoolClassLoaders (1) > > org.apache.commons.pool.impl.TestGenericObjectPoolClassLoaders > > > testContextClassLoader(org.apache.commons.pool.impl.TestGenericObjectPoolClassLoaders) > > junit.framework.AssertionFailedError: Wrong number of idle objects in > pool1 > > expected:<1> but was:<0> > > <snip/> > > > at > org.apache.commons.pool.impl.TestGenericObjectPoolClassLoaders.testContextClassLoader(TestGenericObjectPoolClassLoaders.java:46) > > <snip/> > > Looking at line 46 of the test, it is possible that it could fail > depending on the execution timing. Maybe try increasing the Thread.sleep() > ? > I am glad it works on your end. It fails no matter what I change the numbers to, for example: pool1.setTimeBetweenEvictionRunsMillis(20); Thread.sleep(5000); or: pool1.setTimeBetweenEvictionRunsMillis(1000); Thread.sleep(5000); arg :( I makes it hard to cut an RC! Gary > > This fails for me from Eclipse and Maven: > > > > Maven home: C:\Java\apache-maven-3.0.5\bin\.. > I don't use Maven. > > > Java version: 1.7.0_21, vendor: Oracle Corporation > Same version, 64 bit version. > > > Java home: C:\Program Files\Java\jdk1.7.0_21\jre > Different install location - that shouldn't matter. > > > Default locale: en_US, platform encoding: Cp1252 > en_GB, Cp1252 > > > OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" > Same apart from Windows Server 2008 R2 > > Pretty similar platforms. Best guess is a timing issue. > > Mark > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> Spring Batch in Action <http://www.manning.com/templier/> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory