Skip to content

Commit

Permalink
changed some mock server ports to not clash
Browse files Browse the repository at this point in the history
  • Loading branch information
christkv committed Apr 28, 2017
1 parent 5700d61 commit f5e2a68
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/functional/max_staleness_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ exports['Should correctly set maxStalenessSeconds on Mongos query using MongoCli
var command = null;
// Boot the mock
co(function*() {
mongos1 = yield mockupdb.createServer(52000, 'localhost');
mongos1 = yield mockupdb.createServer(62001, 'localhost');

// Mongos
co(function*() {
Expand Down Expand Up @@ -92,7 +92,7 @@ exports['Should correctly set maxStalenessSeconds on Mongos query using MongoCli
}
});

MongoClient.connect('mongodb://localhost:52000/test?readPreference=secondary&maxStalenessSeconds=250', function(err, db) {
MongoClient.connect('mongodb://localhost:62001/test?readPreference=secondary&maxStalenessSeconds=250', function(err, db) {
test.equal(null, err);

db.collection('test').find({}).toArray(function(err, r) {
Expand Down Expand Up @@ -161,7 +161,7 @@ exports['Should correctly set maxStalenessSeconds on Mongos query using db level
var command = null;
// Boot the mock
co(function*() {
mongos1 = yield mockupdb.createServer(52000, 'localhost');
mongos1 = yield mockupdb.createServer(62002, 'localhost');

// Mongos
co(function*() {
Expand Down Expand Up @@ -190,7 +190,7 @@ exports['Should correctly set maxStalenessSeconds on Mongos query using db level
}
});

MongoClient.connect('mongodb://localhost:52000/test', function(err, db) {
MongoClient.connect('mongodb://localhost:62002/test', function(err, db) {
test.equal(null, err);

// Get a db with a new readPreference
Expand Down Expand Up @@ -261,7 +261,7 @@ exports['Should correctly set maxStalenessSeconds on Mongos query using collecti
var command = null;
// Boot the mock
co(function*() {
mongos1 = yield mockupdb.createServer(52000, 'localhost');
mongos1 = yield mockupdb.createServer(62003, 'localhost');

// Mongos
co(function*() {
Expand Down Expand Up @@ -290,7 +290,7 @@ exports['Should correctly set maxStalenessSeconds on Mongos query using collecti
}
});

MongoClient.connect('mongodb://localhost:52000/test', function(err, db) {
MongoClient.connect('mongodb://localhost:62003/test', function(err, db) {
test.equal(null, err);

// Get a db with a new readPreference
Expand Down Expand Up @@ -360,7 +360,7 @@ exports['Should correctly set maxStalenessSeconds on Mongos query using cursor l
var command = null;
// Boot the mock
co(function*() {
mongos1 = yield mockupdb.createServer(52000, 'localhost');
mongos1 = yield mockupdb.createServer(62004, 'localhost');

// Mongos
co(function*() {
Expand Down Expand Up @@ -389,7 +389,7 @@ exports['Should correctly set maxStalenessSeconds on Mongos query using cursor l
}
});

MongoClient.connect('mongodb://localhost:52000/test', function(err, db) {
MongoClient.connect('mongodb://localhost:62004/test', function(err, db) {
test.equal(null, err);

// Get a db with a new readPreference
Expand Down

0 comments on commit f5e2a68

Please sign in to comment.