jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1324586 - in /jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/util: CommitGateIT.java CommitGateTest.java
Date Wed, 11 Apr 2012 06:36:20 GMT
Author: jukka
Date: Wed Apr 11 06:36:20 2012
New Revision: 1324586

URL: http://svn.apache.org/viewvc?rev=1324586&view=rev
Log:
OAK-53: exclude longer running tests in the default maven profile

Turn the CommitGate test into an IT since it takes a (small) while to execute.

Also disable an assertion that depends on timing.

Added:
    jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/util/CommitGateIT.java
      - copied, changed from r1311891, jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/util/CommitGateTest.java
Removed:
    jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/util/CommitGateTest.java

Copied: jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/util/CommitGateIT.java
(from r1311891, jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/util/CommitGateTest.java)
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/util/CommitGateIT.java?p2=jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/util/CommitGateIT.java&p1=jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/util/CommitGateTest.java&r1=1311891&r2=1324586&rev=1324586&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/util/CommitGateTest.java
(original)
+++ jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/util/CommitGateIT.java
Wed Apr 11 06:36:20 2012
@@ -23,7 +23,7 @@ import java.util.concurrent.atomic.Atomi
 /**
  * Test the commit gate.
  */
-public class CommitGateTest extends TestCase {
+public class CommitGateIT extends TestCase {
 
     public void test() throws InterruptedException {
         final CommitGate gate = new CommitGate();
@@ -72,8 +72,9 @@ public class CommitGateTest extends Test
         for (Thread j : threads) {
             j.join();
         }
-        assertTrue("ticks: " + tick.get() + " min: " + threadCount * commitCount + " spurious:
" + spurious.get(),
-                tick.get() >= threadCount * commitCount * 0.2 && tick.get() <=
threadCount * commitCount * 1.2);
+        // disabled: depends on timing
+        // assertTrue("ticks: " + tick.get() + " min: " + threadCount * commitCount + " spurious:
" + spurious.get(),
+        //         tick.get() >= threadCount * commitCount * 0.2 && tick.get()
<= threadCount * commitCount * 1.2);
     }
 
 }



Mime
View raw message