@@ -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 {
@@ -1505,8 +1505,8 @@ func TestCollection(t *testing.T) {
1505
1505
})
1506
1506
}
1507
1507
})
1508
- mt .RunOpts ("delete write errors" , mtest .NewOptions ().MaxServerVersion ("5.2 " ), func (mt * mtest.T ) {
1509
- // Deletes are not allowed on capped collections on MongoDB 5.2 -. We use this
1508
+ mt .RunOpts ("delete write errors" , mtest .NewOptions ().MaxServerVersion ("5.0.7 " ), func (mt * mtest.T ) {
1509
+ // Deletes are not allowed on capped collections on MongoDB 5.0.6 -. We use this
1510
1510
// behavior to test the processing of write errors.
1511
1511
doc := mongo .NewDeleteOneModel ().SetFilter (bson.D {{"x" , 1 }})
1512
1512
models := []mongo.WriteModel {doc , doc }
@@ -1604,8 +1604,8 @@ func TestCollection(t *testing.T) {
1604
1604
assert .Equal (mt , expectedModel , actualModel , "expected model %v in BulkWriteException, got %v" ,
1605
1605
expectedModel , actualModel )
1606
1606
})
1607
- mt .RunOpts ("unordered writeError index" , mtest .NewOptions ().MaxServerVersion ("5.2 " ), func (mt * mtest.T ) {
1608
- // Deletes are not allowed on capped collections on MongoDB 5.2 -. We use this
1607
+ mt .RunOpts ("unordered writeError index" , mtest .NewOptions ().MaxServerVersion ("5.0.7 " ), func (mt * mtest.T ) {
1608
+ // Deletes are not allowed on capped collections on MongoDB 5.0.6 -. We use this
1609
1609
// behavior to test the processing of write errors.
1610
1610
cappedOpts := bson.D {{"capped" , true }, {"size" , 64 * 1024 }}
1611
1611
capped := mt .CreateCollection (mtest.Collection {
0 commit comments