Skip to content

Commit 4b3065c

Browse files
committed
Add prose tests.
JAVA-5854
1 parent 889d5c8 commit 4b3065c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

driver-sync/src/test/functional/com/mongodb/client/AbstractClientMetadataProseTest.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.MongoClientSettings;
2021
import com.mongodb.MongoDriverInformation;
2122
import com.mongodb.event.CommandStartedEvent;
@@ -36,6 +37,7 @@
3637
import static com.mongodb.ClusterFixture.sleep;
3738
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
3839
import static org.junit.jupiter.api.Assertions.assertFalse;
40+
import static org.junit.jupiter.api.Assumptions.assumeFalse;
3941

4042
/**
4143
* See <a href="https://github.com/mongodb/specifications/blob/master/source/mongodb-handshake/handshake.md#test-plan">spec</a>
@@ -50,6 +52,8 @@ protected abstract MongoClient createMongoClient(@Nullable final MongoDriverInfo
5052

5153
@BeforeEach
5254
public void setUp() {
55+
assumeFalse(ClusterFixture.isLoadBalanced());
56+
5357
commandListener = new TestCommandListener();
5458
connectionPoolListener = new TestConnectionPoolListener();
5559
InternalStreamConnection.setRecordEverything(true);

0 commit comments

Comments
 (0)