jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: svn commit: r1327516 - /jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/persistence/GCPersistenceTest.java
Date Wed, 18 Apr 2012 14:14:03 GMT
On 2012-04-18 16:12, reschke@apache.org wrote:
> Author: reschke
> Date: Wed Apr 18 14:12:06 2012
> New Revision: 1327516
>
> URL: http://svn.apache.org/viewvc?rev=1327516&view=rev
> Log:
> fix failing GC test by adding Thread.sleep
>
> Modified:
>      jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/persistence/GCPersistenceTest.java
>
> Modified: jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/persistence/GCPersistenceTest.java
> URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/persistence/GCPersistenceTest.java?rev=1327516&r1=1327515&r2=1327516&view=diff
> ==============================================================================
> --- jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/persistence/GCPersistenceTest.java
(original)
> +++ jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/persistence/GCPersistenceTest.java
Wed Apr 18 14:12:06 2012
> @@ -79,6 +79,7 @@ public class GCPersistenceTest {
>           MutableNode node = new MutableNode(null, "/");
>           Id id = pm.writeNode(node);
>
> +        Thread.sleep(1);
>           pm.start();
>           pm.sweep();

This test has been failing on my machine most of the time; adding a 
Thread.sleep() seems to "fix" it. For some value of "fix".

Best regards, Julian

Mime
View raw message