You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ds...@apache.org on 2015/11/03 20:38:40 UTC
[08/35] incubator-geode git commit: GEODE-367: wait longer for
assertion
GEODE-367: wait longer for assertion
Also fixed assertion messages.
Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/d08e51d2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/d08e51d2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/d08e51d2
Branch: refs/heads/develop
Commit: d08e51d2eaa391fcda11cd18ee4413aa5fe6b80d
Parents: 0c95100
Author: Darrel Schneider <ds...@pivotal.io>
Authored: Mon Oct 26 17:26:39 2015 -0700
Committer: Darrel Schneider <ds...@pivotal.io>
Committed: Mon Oct 26 17:26:39 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/d08e51d2/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 1b9089f..8faa03c 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
@@ -1199,13 +1199,13 @@ public class MemoryThresholdsOffHeapDUnitTest extends ClientServerTestCase {
getCache().getLoggerI18n().fine(removeExpectedExString);
WaitCriterion wc = new WaitCriterion() {
public String description() {
- return "verify critical state";
+ return "expected region " + r + " to set memoryThresholdReached";
}
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));
@@ -1220,13 +1220,13 @@ public class MemoryThresholdsOffHeapDUnitTest extends ClientServerTestCase {
getCache().getLoggerI18n().fine(removeExpectedBelow);
wc = new WaitCriterion() {
public String description() {
- return "verify critical state";
+ return "expected region " + r + " to unset memoryThresholdReached";
}
public boolean done() {
return !r.memoryThresholdReached.get();
}
};
- waitForCriterion(wc, 3000, 100, true);
+ waitForCriterion(wc, 30*1000, 10, true);
{
Integer k = new Integer(3);