You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by bs...@apache.org on 2015/08/14 22:40:32 UTC

[43/50] [abbrv] 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/9de95d63
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/9de95d63
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/9de95d63

Branch: refs/heads/feature/GEODE-77
Commit: 9de95d63275c5e5a13b35d5bb7744c399916d7f5
Parents: fcd0340
Author: Darrel Schneider <ds...@pivotal.io>
Authored: Wed Aug 12 10:12:44 2015 -0700
Committer: Darrel Schneider <ds...@pivotal.io>
Committed: Wed Aug 12 10:41:27 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/9de95d63/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");