Skip to content

Commit

Permalink
revert CPGroupAvailabilityListenerTest.java - no longer necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
lprimak committed Oct 16, 2023
1 parent c2e18ff commit c2ab24b
Showing 1 changed file with 0 additions and 18 deletions.
Expand Up @@ -78,24 +78,6 @@ public void whenMemberTerminated_thenReceiveEvents() throws Exception {
assertEquals(1, listener.majorityEventCount.get());
}

@Test
public void whenMemberExitsNormally_thenReceiveEvents() throws Exception {
CountingDownCPGroupAvailabilityListener listener = new CountingDownCPGroupAvailabilityListener(1, 1);

HazelcastInstance[] instances = newInstances(3);
instances[1].getCPSubsystem().addGroupAvailabilityListener(listener);

instances[0].shutdown();
assertOpenEventually(listener.availabilityLatch);
assertEquals(1, listener.availabilityEventCount.get());

instances[2].shutdown();
assertFalse(listener.majorityLatch.await(1, TimeUnit.SECONDS));
assertEquals(2, listener.availabilityEventCount.get());
assertOpenEventually(listener.majorityLatch);
assertEquals(1, listener.majorityEventCount.get());
}

@Test
public void whenListenerDeregistered_thenNoEventsReceived() {
CountingDownCPGroupAvailabilityListener listener = new CountingDownCPGroupAvailabilityListener(1, 1);
Expand Down

0 comments on commit c2ab24b

Please sign in to comment.