Skip to content

Commit accad21

Browse files
committed
JAVA-2018: Ignore test of aggregate $out when server version is not at least 2.6
1 parent 0751e97 commit accad21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

driver/src/test/functional/com/mongodb/DBCollectionTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,8 @@ public void testBypassDocumentValidationForBulkReplace() {
12801280

12811281
@Test
12821282
public void testBypassDocumentValidationForAggregateDollarOut() {
1283+
assumeThat(serverVersionAtLeast(asList(2, 6, 0)), is(true));
1284+
12831285
//given
12841286
DBObject options = new BasicDBObject("validator", QueryBuilder.start("level").greaterThanEquals(10).get());
12851287
DBCollection cOut = database.createCollection(collectionName + ".out", options);

0 commit comments

Comments
 (0)