jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1738714 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AddEventListenerTest.java
Date Tue, 12 Apr 2016 07:29:36 GMT
Author: mreutegg
Date: Tue Apr 12 07:29:35 2016
New Revision: 1738714

URL: http://svn.apache.org/viewvc?rev=1738714&view=rev
Log:
JCR-3963: Reduce wait timeout for AddEventListenerTest.testNoLocalTrue()

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AddEventListenerTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AddEventListenerTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AddEventListenerTest.java?rev=1738714&r1=1738713&r2=1738714&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AddEventListenerTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AddEventListenerTest.java
Tue Apr 12 07:29:35 2016
@@ -108,7 +108,8 @@ public class AddEventListenerTest extend
 
         testRootNode.addNode(nodeName1, testNodeType);
         testRootNode.getSession().save();
-        Event[] events = listener.getEvents(DEFAULT_WAIT_TIMEOUT);
+        // only wait one second because we don't expect any event
+        Event[] events = listener.getEvents(1000);
         obsMgr.removeEventListener(listener);
         assertEquals("EventListener must not receive own modification when noLocal=true",
0, events.length);
     }



Mime
View raw message