jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1574793 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/observation/ObservationTest.java
Date Thu, 06 Mar 2014 08:13:56 GMT
Author: mduerig
Date: Thu Mar  6 08:13:56 2014
New Revision: 1574793

URL: http://svn.apache.org/r1574793
Log:
OAK-1491: ObservationTest failure on Windows
Use constant instead of magic number

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

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/observation/ObservationTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/observation/ObservationTest.java?rev=1574793&r1=1574792&r2=1574793&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/observation/ObservationTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/observation/ObservationTest.java
Thu Mar  6 08:13:56 2014
@@ -396,7 +396,7 @@ public class ObservationTest extends Abs
         }).get(10, TimeUnit.SECONDS);
 
         // Make sure we see no more events
-        assertFalse(noEvents.wait(2, TimeUnit.SECONDS));
+        assertFalse(noEvents.wait(TIME_OUT, TimeUnit.SECONDS));
     }
 
     @Test
@@ -424,7 +424,7 @@ public class ObservationTest extends Abs
         n.getSession().save();
 
         // Make sure we see the events and the listener is gone
-        assertNotNull(unregistered.get(2, TimeUnit.SECONDS));
+        assertNotNull(unregistered.get(TIME_OUT, TimeUnit.SECONDS));
         assertFalse(observationManager.getRegisteredEventListeners().hasNext());
     }
 



Mime
View raw message