geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [12/12] geode git commit: GEODE-2458: await expected JMX notifications in verifyMemberNotifications
Date Thu, 09 Feb 2017 23:34:46 GMT
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/7085c320
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/7085c320
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/7085c320

Branch: refs/heads/feature/GEODE-2456
Commit: 7085c3205a9fd1167c22b61d58767cb81097d14b
Parents: 15748ed
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 15:15:34 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/7085c320/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