Skip to content

Commit a034ec8

Browse files
committed
JAVA-2737: Change functional test in SingleServerClusterTest so that it can execute on all supported server versions
1 parent 308c5fb commit a034ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver-core/src/test/functional/com/mongodb/connection/SingleServerClusterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public void shouldSuccessfullyQueryASecondaryWithPrimaryReadPreference() {
115115
Connection connection = cluster.getServer(secondary).getConnection();
116116

117117
// when
118-
BsonDocument result = connection.command(getDefaultDatabaseName(), new BsonDocument("find", new BsonString(collectionName)),
118+
BsonDocument result = connection.command(getDefaultDatabaseName(), new BsonDocument("count", new BsonString(collectionName)),
119119
new NoOpFieldNameValidator(), ReadPreference.primary(), new BsonDocumentCodec(), NoOpSessionContext.INSTANCE);
120120

121121
// then

0 commit comments

Comments
 (0)