You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by th...@apache.org on 2015/10/09 09:05:40 UTC

svn commit: r1707667 - /jackrabbit/oak/branches/1.2/oak-core/src/test/java/org/apache/jackrabbit/oak/cache/ConcurrentTest.java

Author: thomasm
Date: Fri Oct  9 07:05:40 2015
New Revision: 1707667

URL: http://svn.apache.org/viewvc?rev=1707667&view=rev
Log:
OAK-3432 ConcurrentTest.testLoaderBlock fails because of waiting issue

Modified:
    jackrabbit/oak/branches/1.2/oak-core/src/test/java/org/apache/jackrabbit/oak/cache/ConcurrentTest.java

Modified: jackrabbit/oak/branches/1.2/oak-core/src/test/java/org/apache/jackrabbit/oak/cache/ConcurrentTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/branches/1.2/oak-core/src/test/java/org/apache/jackrabbit/oak/cache/ConcurrentTest.java?rev=1707667&r1=1707666&r2=1707667&view=diff
==============================================================================
--- jackrabbit/oak/branches/1.2/oak-core/src/test/java/org/apache/jackrabbit/oak/cache/ConcurrentTest.java (original)
+++ jackrabbit/oak/branches/1.2/oak-core/src/test/java/org/apache/jackrabbit/oak/cache/ConcurrentTest.java Fri Oct  9 07:05:40 2015
@@ -54,7 +54,7 @@ public class ConcurrentTest {
                 public void run() {
                     while (!stop.get()) {
                         final int key = nextKey.getAndIncrement();
-                        final int wait = key;
+                        final int wait = Math.min(key, 100);
                         Callable<Integer> callable = new Callable<Integer>() {
                             @Override
                             public Integer call() throws ExecutionException {