Skip to content

Commit 043c958

Browse files
committedNov 6, 2015
repro; #3537
1 parent 4023f12 commit 043c958

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎test/connection.test.js

+6
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,12 @@ describe('connections:', function() {
871871
});
872872
});
873873

874+
it('connecting to single mongos (gh-3537)', function(done) {
875+
var db = mongoose.createConnection('localhost:27017', { mongos: true });
876+
assert.ok(db.db.serverConfig instanceof mongoose.mongo.Mongos);
877+
db.close(done);
878+
});
879+
874880
describe('connecting to multiple mongos nodes (gh-1037)', function() {
875881
var mongos = process.env.MONGOOSE_MULTI_MONGOS_TEST_URI;
876882
if (!mongos) return console.log('Not testing multi-mongos support');

0 commit comments

Comments
 (0)
Please sign in to comment.