incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r946560 - /sling/trunk/bundles/jcr/resource/src/test/java/org/apache/sling/jcr/resource/internal/JcrResourceListenerTest.java
Date Thu, 20 May 2010 08:15:51 GMT
Author: cziegeler
Date: Thu May 20 08:15:51 2010
New Revision: 946560

URL: http://svn.apache.org/viewvc?rev=946560&view=rev
Log:
SLING-1525 : JcrResourceListenerTest#testInWs2 fails with the actual trunk on "fast"machines
from time to time. Apply patch from Mike Müller

Modified:
    sling/trunk/bundles/jcr/resource/src/test/java/org/apache/sling/jcr/resource/internal/JcrResourceListenerTest.java

Modified: sling/trunk/bundles/jcr/resource/src/test/java/org/apache/sling/jcr/resource/internal/JcrResourceListenerTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/test/java/org/apache/sling/jcr/resource/internal/JcrResourceListenerTest.java?rev=946560&r1=946559&r2=946560&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/resource/src/test/java/org/apache/sling/jcr/resource/internal/JcrResourceListenerTest.java
(original)
+++ sling/trunk/bundles/jcr/resource/src/test/java/org/apache/sling/jcr/resource/internal/JcrResourceListenerTest.java
Thu May 20 08:15:51 2010
@@ -21,6 +21,7 @@ import static org.mockito.Mockito.when;
 
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Random;
 
 import javax.jcr.Node;
 import javax.jcr.RepositoryException;
@@ -112,7 +113,7 @@ public class JcrResourceListenerTest ext
     }
 
     private String createTestPath() {
-        return "/test" + System.currentTimeMillis();
+        return "/test" + System.currentTimeMillis() + new Random().nextInt();
     }
 
     private List<Event> generateEvents(String workspaceName) throws Exception {



Mime
View raw message