@@ -308,8 +308,8 @@ func TestCollection(t *testing.T) {
308
308
assert .Nil (mt , err , "DeleteOne error: %v" , err )
309
309
assert .Equal (mt , int64 (0 ), res .DeletedCount , "expected DeletedCount 0, got %v" , res .DeletedCount )
310
310
})
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
313
313
// behavior to test the processing of write errors.
314
314
cappedOpts := bson.D {{"capped" , true }, {"size" , 64 * 1024 }}
315
315
capped := mt .CreateCollection (mtest.Collection {
@@ -377,8 +377,8 @@ func TestCollection(t *testing.T) {
377
377
assert .Nil (mt , err , "DeleteMany error: %v" , err )
378
378
assert .Equal (mt , int64 (0 ), res .DeletedCount , "expected DeletedCount 0, got %v" , res .DeletedCount )
379
379
})
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
382
382
// behavior to test the processing of write errors.
383
383
cappedOpts := bson.D {{"capped" , true }, {"size" , 64 * 1024 }}
384
384
capped := mt .CreateCollection (mtest.Collection {
@@ -1526,8 +1526,8 @@ func TestCollection(t *testing.T) {
1526
1526
})
1527
1527
}
1528
1528
})
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
1531
1531
// behavior to test the processing of write errors.
1532
1532
doc := mongo .NewDeleteOneModel ().SetFilter (bson.D {{"x" , 1 }})
1533
1533
models := []mongo.WriteModel {doc , doc }
@@ -1625,8 +1625,8 @@ func TestCollection(t *testing.T) {
1625
1625
assert .Equal (mt , expectedModel , actualModel , "expected model %v in BulkWriteException, got %v" ,
1626
1626
expectedModel , actualModel )
1627
1627
})
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
1630
1630
// behavior to test the processing of write errors.
1631
1631
cappedOpts := bson.D {{"capped" , true }, {"size" , 64 * 1024 }}
1632
1632
capped := mt .CreateCollection (mtest.Collection {
0 commit comments