@@ -308,8 +308,8 @@ func TestCollection(t *testing.T) {
308308 assert .Nil (mt , err , "DeleteOne error: %v" , err )
309309 assert .Equal (mt , int64 (0 ), res .DeletedCount , "expected DeletedCount 0, got %v" , res .DeletedCount )
310310 })
311- mt .RunOpts ("write error" , mtest .NewOptions ().MaxServerVersion ("5.2 " ), func (mt * mtest.T ) {
312- // Deletes are not allowed on capped collections on MongoDB 5.2 -. We use this
311+ mt .RunOpts ("write error" , mtest .NewOptions ().MaxServerVersion ("5.0.7 " ), func (mt * mtest.T ) {
312+ // Deletes are not allowed on capped collections on MongoDB 5.0.6 -. We use this
313313 // behavior to test the processing of write errors.
314314 cappedOpts := bson.D {{"capped" , true }, {"size" , 64 * 1024 }}
315315 capped := mt .CreateCollection (mtest.Collection {
@@ -377,8 +377,8 @@ func TestCollection(t *testing.T) {
377377 assert .Nil (mt , err , "DeleteMany error: %v" , err )
378378 assert .Equal (mt , int64 (0 ), res .DeletedCount , "expected DeletedCount 0, got %v" , res .DeletedCount )
379379 })
380- mt .RunOpts ("write error" , mtest .NewOptions ().MaxServerVersion ("5.2 " ), func (mt * mtest.T ) {
381- // Deletes are not allowed on capped collections on MongoDB 5.2 -. We use this
380+ mt .RunOpts ("write error" , mtest .NewOptions ().MaxServerVersion ("5.0.7 " ), func (mt * mtest.T ) {
381+ // Deletes are not allowed on capped collections on MongoDB 5.0.6 -. We use this
382382 // behavior to test the processing of write errors.
383383 cappedOpts := bson.D {{"capped" , true }, {"size" , 64 * 1024 }}
384384 capped := mt .CreateCollection (mtest.Collection {
@@ -1526,8 +1526,8 @@ func TestCollection(t *testing.T) {
15261526 })
15271527 }
15281528 })
1529- mt .RunOpts ("delete write errors" , mtest .NewOptions ().MaxServerVersion ("5.2 " ), func (mt * mtest.T ) {
1530- // Deletes are not allowed on capped collections on MongoDB 5.2 -. We use this
1529+ mt .RunOpts ("delete write errors" , mtest .NewOptions ().MaxServerVersion ("5.0.7 " ), func (mt * mtest.T ) {
1530+ // Deletes are not allowed on capped collections on MongoDB 5.0.6 -. We use this
15311531 // behavior to test the processing of write errors.
15321532 doc := mongo .NewDeleteOneModel ().SetFilter (bson.D {{"x" , 1 }})
15331533 models := []mongo.WriteModel {doc , doc }
@@ -1625,8 +1625,8 @@ func TestCollection(t *testing.T) {
16251625 assert .Equal (mt , expectedModel , actualModel , "expected model %v in BulkWriteException, got %v" ,
16261626 expectedModel , actualModel )
16271627 })
1628- mt .RunOpts ("unordered writeError index" , mtest .NewOptions ().MaxServerVersion ("5.2 " ), func (mt * mtest.T ) {
1629- // Deletes are not allowed on capped collections on MongoDB 5.2 -. We use this
1628+ mt .RunOpts ("unordered writeError index" , mtest .NewOptions ().MaxServerVersion ("5.0.7 " ), func (mt * mtest.T ) {
1629+ // Deletes are not allowed on capped collections on MongoDB 5.0.6 -. We use this
16301630 // behavior to test the processing of write errors.
16311631 cappedOpts := bson.D {{"capped" , true }, {"size" , 64 * 1024 }}
16321632 capped := mt .CreateCollection (mtest.Collection {
0 commit comments