globalsign / mgo

The MongoDB driver for Go
Other
1.97k stars 231 forks source link

Enable ReplicaSet in dbtest server. #318

Closed taherv closed 5 years ago

taherv commented 5 years ago

Some parts of the mgo API (e.g. Change Streams) only work on mongodb ReplicaSets. To enable testing for those, this commit adds the ability to start a 1-member ReplicaSet via the test server. Enable it by setting the ReplicaSet boolean field on the DBServer struct to true, before creating a Session.

taherv commented 5 years ago

Closing, since opened in error against the master branch ! Sorry !