Skip to content

Commit

Permalink
repro; #3537
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Nov 6, 2015
1 parent 4023f12 commit 043c958
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/connection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,12 @@ describe('connections:', function() {
});
});

it('connecting to single mongos (gh-3537)', function(done) {
var db = mongoose.createConnection('localhost:27017', { mongos: true });
assert.ok(db.db.serverConfig instanceof mongoose.mongo.Mongos);
db.close(done);
});

describe('connecting to multiple mongos nodes (gh-1037)', function() {
var mongos = process.env.MONGOOSE_MULTI_MONGOS_TEST_URI;
if (!mongos) return console.log('Not testing multi-mongos support');
Expand Down

0 comments on commit 043c958

Please sign in to comment.