Skip to content

Commit 8c8fe5a

Browse files
jlordJessica Lord
authored and
Jessica Lord
committed
test(url parser): update to new urls
1 parent daa186d commit 8c8fe5a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/functional/url_parser_tests.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1005,8 +1005,8 @@ describe('Url SRV Parser', function() {
10051005
// mongodb://localhost.build.10gen.cc:27018,localhost.build.10gen.cc:27017
10061006
parse('mongodb+srv://test1.test.build.10gen.cc', {}, function(err, object) {
10071007
var servers = [
1008-
{ host: 'localhost.build.10gen.cc', port: 27017 },
1009-
{ host: 'localhost.build.10gen.cc', port: 27018 }
1008+
{ host: 'localhost.test.build.10gen.cc', port: 27017 },
1009+
{ host: 'localhost.test.build.10gen.cc', port: 27018 }
10101010
];
10111011

10121012
expect(err).to.be.null;
@@ -1029,8 +1029,8 @@ describe('Url SRV Parser', function() {
10291029
// mongodb://localhost.build.10gen.cc:27018,localhost.build.10gen.cc:27017
10301030
parse('mongodb+srv://test2.test.build.10gen.cc', {}, function(err, object) {
10311031
var servers = [
1032-
{ host: 'localhost.build.10gen.cc', port: 27018 },
1033-
{ host: 'localhost.build.10gen.cc', port: 27019 }
1032+
{ host: 'localhost.test.build.10gen.cc', port: 27018 },
1033+
{ host: 'localhost.test.build.10gen.cc', port: 27019 }
10341034
];
10351035
expect(err).to.be.null;
10361036
expect(object).to.exist;
@@ -1052,7 +1052,7 @@ describe('Url SRV Parser', function() {
10521052
parse('mongodb+srv://test3.test.build.10gen.cc', {}, function(err, object) {
10531053
expect(err).to.be.null;
10541054
expect(object).to.exist;
1055-
expect(object.servers[0].host).to.equal('localhost.build.10gen.cc');
1055+
expect(object.servers[0].host).to.equal('localhost.test.build.10gen.cc');
10561056
expect(object.servers[0].port).to.equal(27017);
10571057
done();
10581058
});
@@ -1143,7 +1143,7 @@ describe('Url SRV Parser', function() {
11431143
parse('mongodb+srv://test6.test.build.10gen.cc', {}, function(err, object) {
11441144
expect(err).to.be.null;
11451145
expect(object).to.exist;
1146-
expect(object.servers[0].host).to.equal('localhost.build.10gen.cc');
1146+
expect(object.servers[0].host).to.equal('localhost.test.build.10gen.cc');
11471147
expect(object.servers[0].port).to.equal(27017);
11481148
expect(object.server_options.socketOptions.connectTimeoutMS).to.equal(200000);
11491149
expect(object.server_options.socketOptions.socketTimeoutMS).to.equal(200000);
@@ -1167,7 +1167,7 @@ describe('Url SRV Parser', function() {
11671167
) {
11681168
expect(err).to.be.null;
11691169
expect(object).to.exist;
1170-
expect(object.servers[0].host).to.equal('localhost.build.10gen.cc');
1170+
expect(object.servers[0].host).to.equal('localhost.test.build.10gen.cc');
11711171
expect(object.servers[0].port).to.equal(27017);
11721172
// TODO check all options get override
11731173
expect(object.db_options.connectTimeoutMS).to.equal(250000);

0 commit comments

Comments
 (0)