geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dschnei...@apache.org
Subject incubator-geode git commit: GEODE-211: shorten the time ConcurrentRegionOperationsJUnitTest runs
Date Wed, 12 Aug 2015 17:42:11 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop fcd03406c -> 9de95d632


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/develop
Commit: 9de95d63275c5e5a13b35d5bb7744c399916d7f5
Parents: fcd0340
Author: Darrel Schneider <dschneider@pivotal.io>
Authored: Wed Aug 12 10:12:44 2015 -0700
Committer: Darrel Schneider <dschneider@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");


Mime
View raw message