geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject geode git commit: GEODE-2458: await expected JMX notifications in verifyMemberNotifications
Date Thu, 09 Feb 2017 23:05:47 GMT
Repository: geode
Updated Branches:
  refs/heads/feature/GEODE-2456 7d23a89d7 -> d4f8c8068


GEODE-2458: await expected JMX notifications in verifyMemberNotifications


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

Branch: refs/heads/feature/GEODE-2456
Commit: d4f8c80683c428dca8b2a6ec72bc8197c2d1845e
Parents: 7d23a89
Author: Kirk Lund <klund@apache.org>
Authored: Thu Feb 9 14:59:03 2017 -0800
Committer: Kirk Lund <klund@apache.org>
Committed: Thu Feb 9 14:59:03 2017 -0800

----------------------------------------------------------------------
 .../org/apache/geode/management/RegionManagementDUnitTest.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/d4f8c806/geode-core/src/test/java/org/apache/geode/management/RegionManagementDUnitTest.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/org/apache/geode/management/RegionManagementDUnitTest.java
b/geode-core/src/test/java/org/apache/geode/management/RegionManagementDUnitTest.java
index 7ff5f02..aca279b 100644
--- a/geode-core/src/test/java/org/apache/geode/management/RegionManagementDUnitTest.java
+++ b/geode-core/src/test/java/org/apache/geode/management/RegionManagementDUnitTest.java
@@ -578,8 +578,7 @@ public class RegionManagementDUnitTest extends ManagementTestBase {
   private void verifyMemberNotifications(final VM managerVM, final String regionName,
       final int expectedMembers) {
     managerVM.invoke("verifyMemberNotifications", () -> {
-      assertThat(MEMBER_NOTIFICATIONS_REF.get()).isNotNull();
-      assertThat(MEMBER_NOTIFICATIONS_REF.get()).hasSize(expectedMembers * 2);
+      await().until(() -> assertThat(MEMBER_NOTIFICATIONS_REF.get()).hasSize(expectedMembers
* 2));
 
       int regionCreatedCount = 0;
       int regionDestroyedCount = 0;


Mime
View raw message