Skip to content

Commit 81a21e7

Browse files
committed
minor test fixes, updated version to 2.2.6 and mongodb-core to 2.0.8
1 parent 8d5b50c commit 81a21e7

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

HISTORY.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2.2.6 2016-08-16
2+
----------------
3+
* Updated mongodb-core to 2.0.8.
4+
* Allow execution of store operations independent of having both a primary and secondary available (Issue #123).
5+
* Fixed command execution issue for mongos to ensure buffering of commands when no mongos available.
6+
* Allow passing in an array of tags to ReadPreference constructor (Issue #1382, https://github.com/vkarpov15)
7+
* Added hashed connection names and fullResult.
8+
* Updated bson library to 0.5.3.
9+
* Enable maxTimeMS in count, distinct, findAndModify.
10+
111
2.2.5 2016-07-28
212
----------------
313
* Updated mongodb-core to 2.0.7.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mongodb",
3-
"version": "2.2.5",
3+
"version": "2.2.6",
44
"description": "The official MongoDB driver for Node.js",
55
"main": "index.js",
66
"repository": {
@@ -14,8 +14,7 @@
1414
],
1515
"dependencies": {
1616
"es6-promise": "3.0.2",
17-
"mongodb-core": "2.0.7",
18-
"mongodb-core": "christkv/mongodb-core#2.0",
17+
"mongodb-core": "2.0.8",
1918
"readable-stream": "1.0.31"
2019
},
2120
"devDependencies": {

test/functional/mongo_client_tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ exports['Should correctly set MaxPoolSize on replicaset server'] = {
317317
var connections = db.serverConfig.connections();
318318

319319
for(var i = 0; i < connections.length; i++) {
320-
test.equal(120000, connections[i].connectionTimeout);
321-
test.equal(120000, connections[i].socketTimeout);
320+
test.equal(30000, connections[i].connectionTimeout);
321+
test.equal(30000, connections[i].socketTimeout);
322322
}
323323

324324
// console.log("============================= 2")

test/functional/replset_connection_tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ exports['Should correctly connect to a replicaset with additional options'] = {
924924
test.ok(db != null);
925925

926926
test.equal(500, db.serverConfig.connections()[0].connectionTimeout);
927-
test.equal(120000, db.serverConfig.connections()[0].socketTimeout);
927+
test.equal(30000, db.serverConfig.connections()[0].socketTimeout);
928928

929929
db.collection("replicaset_mongo_client_collection").update({a:1}, {b:1}, {upsert:true}, function(err, result) {
930930
test.equal(null, err);

0 commit comments

Comments
 (0)