Skip to content

Commit fbeecd0

Browse files
committed
Skip server monitor listener tests with load-balanced clusters
1 parent f6b540c commit fbeecd0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

driver-sync/src/test/functional/com/mongodb/client/ClusterEventPublishingTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.mongodb.client;
1818

19+
import com.mongodb.ClusterFixture;
1920
import com.mongodb.connection.ClusterType;
2021
import com.mongodb.event.ClusterClosedEvent;
2122
import com.mongodb.event.ClusterDescriptionChangedEvent;
@@ -39,11 +40,14 @@
3940
import static com.mongodb.client.Fixture.getMongoClientSettingsBuilder;
4041
import static org.junit.jupiter.api.Assertions.assertEquals;
4142
import static org.junit.jupiter.api.Assertions.assertTrue;
43+
import static org.junit.jupiter.api.Assumptions.assumeFalse;
4244

4345
public class ClusterEventPublishingTest {
4446

4547
@Test
4648
public void shouldPublishExpectedEvents() throws InterruptedException {
49+
assumeFalse(ClusterFixture.isLoadBalanced());
50+
4751
AllClusterEventListener clusterEventListenerOne = new AllClusterEventListener();
4852
AllClusterEventListener clusterEventListenerTwo = new AllClusterEventListener();
4953

0 commit comments

Comments
 (0)