jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1494679 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Date Wed, 19 Jun 2013 16:25:08 GMT
Author: mduerig
Date: Wed Jun 19 16:25:08 2013
New Revision: 1494679

URL: http://svn.apache.org/r1494679
Log:
OAK-144 Implement Observation
simplify observation tests: guard expected map against concurrent access

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java?rev=1494679&r1=1494678&r2=1494679&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Wed Jun 19 16:25:08 2013
@@ -2155,7 +2155,7 @@ public class RepositoryTest extends Abst
     //------------------------------------------------------------< ExpectationListener
>---
 
     private static class ExpectationListener implements EventListener {
-        private final Map<String, SettableFuture<Event>> expected = Maps.newHashMap();
+        private final Map<String, SettableFuture<Event>> expected = Maps.newConcurrentMap();
         private final List<Event> unexpected = Lists.newCopyOnWriteArrayList();
         private volatile Exception failed;
 



Mime
View raw message