jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r808920 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/AbstractLockTest.java
Date Fri, 28 Aug 2009 15:33:34 GMT
Author: tripod
Date: Fri Aug 28 15:33:34 2009
New Revision: 808920

URL: http://svn.apache.org/viewvc?rev=808920&view=rev
Log:
Adding more information to error message.

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

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/AbstractLockTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/AbstractLockTest.java?rev=808920&r1=808919&r2=808920&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/AbstractLockTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/AbstractLockTest.java
Fri Aug 28 15:33:34 2009
@@ -273,9 +273,10 @@
                 wait(remaining * 2000); // wait twice as long to be safe
             } catch (InterruptedException ignore) {
             }
+            long secs = lock.getSecondsRemaining();
             assertTrue(
-                    "A released lock must return a negative number of seconds",
-                    lock.getSecondsRemaining() < 0);
+                    "A released lock must return a negative number of seconds, was: " + secs,
+                    secs < 0);
             String message = "If the timeout hint is respected the lock"
                 + " must be automatically released.";
             assertFalse(message, lock.isLive());



Mime
View raw message