Hi Kevin, I've replaced on line 608 of DataContextSharedCacheTest
Thread.sleep(1); to Thread.sleep(10); Now it seems the test isn't failing for me. Please try this, I'll commit if it helps 28 октября 2009 г. 17:48 пользователь Kevin Menard <nirvd...@gmail.com>написал: > Thanks. This further supports Andrey's theory that it's a > non-specified ordering issue. I should be able to fix it tonight. > > -- > Kevin > > > 2009/10/28 Ольга Ткачева <tkachovao...@gmail.com>: > > Oh, I use Fedora release 10 (Cambridge) > > > > 2009/10/28 Ольга Ткачева <tkachovao...@gmail.com> > > > >> I run tests on Java 1.6 > >> > >> ]$ java -version > >> > >> java version "1.6.0_16" > >> Java(TM) SE Runtime Environment (build 1.6.0_16-b01) > >> Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode) > >> > >> I don't have errors. > >> > >> > >> > >> 2009/10/26 Kevin Menard <nirvd...@gmail.com> > >> > >>> Yeap. > >>> > >>> > >>> ~/dev/workspaces-java/cayenne(3.0B1) $ java -showversion > >>> java version "1.6.0_15" > >>> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219) > >>> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode) > >>> > >>> This is on Snow Leopard 10.6.1. > >>> > >>> -- > >>> Kevin > >>> > >>> > >>> > >>> On Mon, Oct 26, 2009 at 12:17 PM, Andrus Adamchik > >>> <and...@objectstyle.org> wrote: > >>> > so you use Java 6 by any chance? > >>> > > >>> > On Oct 26, 2009, at 6:12 PM, Kevin Menard wrote: > >>> > > >>> >> I'll have to dig in some more, but I just hit the following test > >>> >> failure using hsqldb: > >>> >> > >>> >> > >>> >> > >>> > ------------------------------------------------------------------------------- > >>> >> Test set: org.apache.cayenne.access.DataContextSharedCacheTest > >>> >> > >>> >> > >>> > ------------------------------------------------------------------------------- > >>> >> Tests run: 16, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: > 2.846 > >>> >> sec <<< FAILURE! > >>> >> testSnapshotEvictedAndObjectsHollowedForInvalidate > >>> >> (org.apache.cayenne.access.DataContextSharedCacheTest) > >>> >> Time elapsed: 0.008 sec <<< FAILURE! > >>> >> junit.framework.AssertionFailedError: expected:<5> but was:<3> > >>> >> at junit.framework.Assert.fail(Assert.java:47) > >>> >> at junit.framework.Assert.failNotEquals(Assert.java:282) > >>> >> at junit.framework.Assert.assertEquals(Assert.java:64) > >>> >> at junit.framework.Assert.assertEquals(Assert.java:201) > >>> >> at junit.framework.Assert.assertEquals(Assert.java:207) > >>> >> at > >>> >> > >>> > org.apache.cayenne.access.DataContextSharedCacheTest.testSnapshotEvictedAndObjectsHollowedForInvalidate(DataContextSharedCacheTest.java:616) > >>> >> > >>> >> -- > >>> >> Kevin > >>> >> > >>> >> > >>> >> > >>> >> On Sun, Oct 25, 2009 at 12:49 PM, Andrus Adamchik > >>> >> <and...@objectstyle.org> wrote: > >>> >>> > >>> >>> Release artifacts are posted here: > >>> >>> > >>> >>> http://people.apache.org/~aadamchik/release/3.0B1/<http://people.apache.org/%7Eaadamchik/release/3.0B1/> > <http://people.apache.org/%7Eaadamchik/release/3.0B1/> > >>> >>> > >>> >>> Please evaluate and cast your votes. > >>> >>> > >>> >>> Cheers, > >>> >>> Andrus > >>> >>> > >>> >> > >>> > > >>> > > >>> > >> > >> > >> > >> -- > >> Olga > >> > > > > > > > > -- > > Olga > > > -- Andrey