geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dschnei...@apache.org
Subject [07/35] incubator-geode git commit: GEODE-438: wait longer for event
Date Tue, 03 Nov 2015 19:38:39 GMT
GEODE-438: wait longer for event

Also the assertion messages now describe what the
test expects.


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

Branch: refs/heads/develop
Commit: 0c9510068522c778e1bd20385e3965a2b5a17578
Parents: b0427d9
Author: Darrel Schneider <dschneider@pivotal.io>
Authored: Mon Oct 26 17:05:39 2015 -0700
Committer: Darrel Schneider <dschneider@pivotal.io>
Committed: Mon Oct 26 17:06:33 2015 -0700

----------------------------------------------------------------------
 .../cache/management/MemoryThresholdsOffHeapDUnitTest.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/0c951006/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
b/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
index 3bddb5a..1b9089f 100644
--- a/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
+++ b/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
@@ -596,13 +596,13 @@ public class MemoryThresholdsOffHeapDUnitTest extends ClientServerTestCase
{
         
         WaitCriterion wc = new WaitCriterion() {
           public String description() {
-            return "verify critical state";
+            return "expected region " + r + " to set memoryThreshold";
           }
           public boolean done() {
             return r.memoryThresholdReached.get();
           }
         };
-        waitForCriterion(wc, 3000, 100, true);
+        waitForCriterion(wc, 30*1000, 10, true);
         {
           Integer k = new Integer(2); 
           assertEquals(k.toString(), r.get(k, new Integer(expectedInvocations++)));
@@ -611,13 +611,13 @@ public class MemoryThresholdsOffHeapDUnitTest extends ClientServerTestCase
{
         r.destroy("oh3");
         wc = new WaitCriterion() {
           public String description() {
-            return "verify critical state";
+            return "expected region " + r + " to unset memoryThreshold";
           }
           public boolean done() {
             return !r.memoryThresholdReached.get();
           }
         };
-        waitForCriterion(wc, 3000, 100, true);
+        waitForCriterion(wc, 30*1000, 10, true);
         {
           Integer k = new Integer(3);
           assertEquals(k.toString(), r.get(k, new Integer(expectedInvocations++)));


Mime
View raw message