geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dschnei...@apache.org
Subject geode git commit: GEODE-2895: fix flaky test
Date Tue, 09 May 2017 21:10:25 GMT
Repository: geode
Updated Branches:
  refs/heads/develop 1d3e0d53f -> 7b2f904f6


GEODE-2895: fix flaky test


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

Branch: refs/heads/develop
Commit: 7b2f904f6c5d96c6bf747ddbe2f856b53e2009a5
Parents: 1d3e0d5
Author: Darrel Schneider <dschneider@pivotal.io>
Authored: Tue May 9 14:09:14 2017 -0700
Committer: Darrel Schneider <dschneider@pivotal.io>
Committed: Tue May 9 14:10:10 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/geode/internal/offheap/OffHeapRegionBase.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/7b2f904f/geode-core/src/test/java/org/apache/geode/internal/offheap/OffHeapRegionBase.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/org/apache/geode/internal/offheap/OffHeapRegionBase.java
b/geode-core/src/test/java/org/apache/geode/internal/offheap/OffHeapRegionBase.java
index c0c6085..63d0ca9 100644
--- a/geode-core/src/test/java/org/apache/geode/internal/offheap/OffHeapRegionBase.java
+++ b/geode-core/src/test/java/org/apache/geode/internal/offheap/OffHeapRegionBase.java
@@ -448,7 +448,8 @@ public abstract class OffHeapRegionBase {
         r.put("key4", new Long(0xFF8000000L));
         assertEquals(4, r.size());
         r.close();
-        assertEquals(0, ma.getUsedMemory());
+        Awaitility.await().atMost(60, TimeUnit.SECONDS)
+            .until(() -> assertEquals(0, ma.getUsedMemory()));
         // simple test of recovery
         r = gfc.createRegionFactory(rs).setOffHeap(true).create(rName);
         assertEquals(4, r.size());


Mime
View raw message