You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2015/09/25 00:44:56 UTC

[19/21] incubator-geode git commit: GEODE-211: shorten the time ConcurrentRegionOperationsJUnitTest runs

GEODE-211: shorten the time ConcurrentRegionOperationsJUnitTest runs


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/12e1c1d9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/12e1c1d9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/12e1c1d9

Branch: refs/heads/feature/GEODE-189
Commit: 12e1c1d9f5e7febe2304ce6dd78faf784b41aa9e
Parents: b49ec53
Author: Darrel Schneider <ds...@pivotal.io>
Authored: Wed Aug 12 10:12:44 2015 -0700
Committer: Kirk Lund <kl...@pivotal.io>
Committed: Thu Aug 13 11:39:49 2015 -0700

----------------------------------------------------------------------
 .../internal/cache/ConcurrentRegionOperationsJUnitTest.java   | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/12e1c1d9/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/ConcurrentRegionOperationsJUnitTest.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/ConcurrentRegionOperationsJUnitTest.java b/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/ConcurrentRegionOperationsJUnitTest.java
index ce0882a..a036e6c 100755
--- a/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/ConcurrentRegionOperationsJUnitTest.java
+++ b/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/ConcurrentRegionOperationsJUnitTest.java
@@ -86,7 +86,7 @@ public class ConcurrentRegionOperationsJUnitTest extends DiskRegionTestingBase
   protected boolean exceptionOccuredInForceRolls = false;
 
   // if this test is to run for a longer time, make this true
-  private static final boolean longTest = true;
+  private static final boolean longTest = false;
 
   protected boolean failure = false;
 
@@ -408,7 +408,7 @@ public class ConcurrentRegionOperationsJUnitTest extends DiskRegionTestingBase
           region.forceRolling();
 
           try {
-            Thread.sleep(250);
+            Thread.sleep(TIME_TO_RUN/100);
           }
           catch (InterruptedException e) {
             fail("interrupted");
@@ -531,7 +531,6 @@ public class ConcurrentRegionOperationsJUnitTest extends DiskRegionTestingBase
     } finally {
       this.timeToStop.set(true);
     }
-
     for (int i = 0; i < numberOfPutsThreads; i++) {
       DistributedTestCase.join(putThreads[i], 10*1000, null);
     }
@@ -872,7 +871,7 @@ public class ConcurrentRegionOperationsJUnitTest extends DiskRegionTestingBase
       waitForAllStartersToBeReady();
       while (!isItTimeToStop()) {
         try {
-          Thread.sleep(100);
+          Thread.sleep(TIME_TO_RUN/100);
         }
         catch (InterruptedException e) {
           fail("interrupted");