diff --git a/lib/connection/pool.js b/lib/connection/pool.js index 7c4c10230..7f80b86e5 100644 --- a/lib/connection/pool.js +++ b/lib/connection/pool.js @@ -287,7 +287,6 @@ function connectionFailureHandler(self, event) { // Flush all work Items on this connection while (this.workItems.length > 0) { var workItem = this.workItems.shift(); - // if(workItem.cb) workItem.cb(err); if (workItem.cb) workItem.cb(err); } diff --git a/lib/wireprotocol/2_6_support.js b/lib/wireprotocol/2_6_support.js index 9a79c4495..7b46ca1a6 100644 --- a/lib/wireprotocol/2_6_support.js +++ b/lib/wireprotocol/2_6_support.js @@ -106,8 +106,6 @@ WireProtocol.prototype.killCursor = function(bson, ns, cursorState, pool, callba } catch (err) { callback(err, null); } - - return; } // Callback diff --git a/test/tests/unit/single/sessions_tests.js b/test/tests/unit/single/sessions_tests.js index 628c75288..5f3d2317d 100644 --- a/test/tests/unit/single/sessions_tests.js +++ b/test/tests/unit/single/sessions_tests.js @@ -217,7 +217,7 @@ describe('Sessions (Single)', function() { } }); - it.only('should return server sessions to the pool on `endSession`', { + it('should return server sessions to the pool on `endSession`', { metadata: { requires: { topology: 'single' } }, test: function(done) { let sentIsMaster = false;