geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject [08/18] incubator-geode git commit: GEODE-1774 Modified test to ignore unnecessary checks.
Date Tue, 06 Sep 2016 17:23:32 GMT
GEODE-1774 Modified test to ignore unnecessary checks.


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

Branch: refs/heads/feature/GEODE-420
Commit: f497c596c31ca29fde1e90e7980cac7422fb27ee
Parents: 49facb8
Author: Hitesh Khamesra <hiteshk25@yahoo.com>
Authored: Thu Sep 1 13:31:57 2016 -0700
Committer: Hitesh Khamesra <hiteshk25@yahoo.com>
Committed: Thu Sep 1 13:31:57 2016 -0700

----------------------------------------------------------------------
 .../cache/PartitionedRegionSingleHopDUnitTest.java   | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/f497c596/geode-core/src/test/java/com/gemstone/gemfire/internal/cache/PartitionedRegionSingleHopDUnitTest.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/com/gemstone/gemfire/internal/cache/PartitionedRegionSingleHopDUnitTest.java
b/geode-core/src/test/java/com/gemstone/gemfire/internal/cache/PartitionedRegionSingleHopDUnitTest.java
index 470a8d4..83f91a8 100755
--- a/geode-core/src/test/java/com/gemstone/gemfire/internal/cache/PartitionedRegionSingleHopDUnitTest.java
+++ b/geode-core/src/test/java/com/gemstone/gemfire/internal/cache/PartitionedRegionSingleHopDUnitTest.java
@@ -1901,6 +1901,7 @@ public class PartitionedRegionSingleHopDUnitTest extends JUnit4CacheTestCase
{
     ClientMetadataService cms = ((GemFireCacheImpl)cache).getClientMetadataService();
 
     cms.satisfyRefreshMetadata_TEST_ONLY(false);
+    
     region.put(new Integer(0), "update0");
     assertEquals(false, cms.isRefreshMetadataTestOnly());
 
@@ -1970,13 +1971,13 @@ public class PartitionedRegionSingleHopDUnitTest extends JUnit4CacheTestCase
{
     //make sure all fetch tasks are completed
     Awaitility.waitAtMost(60, TimeUnit.SECONDS).until(() -> cms.getRefreshTaskCount()
== 0);
 
-    final Map<String, ClientPartitionAdvisor> regionMetaData = cms
-        .getClientPRMetadata_TEST_ONLY();
-    Awaitility.waitAtMost(60, TimeUnit.SECONDS).until(() -> (regionMetaData.size() ==
4));
-    assertEquals(4, regionMetaData.size());
-    assertTrue(regionMetaData.containsKey(region.getFullPath()));
-    final ClientPartitionAdvisor prMetaData = regionMetaData.get(region.getFullPath());
-    Awaitility.waitAtMost(60, TimeUnit.SECONDS).until(() -> (prMetaData.getBucketServerLocationsMap_TEST_ONLY().size()
== 4));
+//    final Map<String, ClientPartitionAdvisor> regionMetaData = cms
+//        .getClientPRMetadata_TEST_ONLY();
+//    Awaitility.waitAtMost(60, TimeUnit.SECONDS).until(() -> (regionMetaData.size() ==
4));
+//    assertEquals(4, regionMetaData.size());
+//    assertTrue(regionMetaData.containsKey(region.getFullPath()));
+//    final ClientPartitionAdvisor prMetaData = regionMetaData.get(region.getFullPath());
+//    Awaitility.waitAtMost(60, TimeUnit.SECONDS).until(() -> (prMetaData.getBucketServerLocationsMap_TEST_ONLY().size()
== 4));
   }
 }
 


Mime
View raw message