Skip to content

Commit d0cf8b9

Browse files
committed
Added server version check in the documentation samples
1 parent cb5c3da commit d0cf8b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

driver/src/it/scala/org/mongodb/scala/DocumentationExampleSpec.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ class DocumentationExampleSpec extends RequiresMongoDBISpec {
416416
}
417417

418418
it should "be able to update" in withCollection { collection =>
419+
assume(serverVersionAtLeast(List(2, 6, 0)))
419420

420421
//Start Example 51
421422
collection.insertMany(Seq(

0 commit comments

Comments
 (0)