@@ -1005,8 +1005,8 @@ describe('Url SRV Parser', function() {
1005
1005
// mongodb://localhost.build.10gen.cc:27018,localhost.build.10gen.cc:27017
1006
1006
parse ( 'mongodb+srv://test1.test.build.10gen.cc' , { } , function ( err , object ) {
1007
1007
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 }
1010
1010
] ;
1011
1011
1012
1012
expect ( err ) . to . be . null ;
@@ -1029,8 +1029,8 @@ describe('Url SRV Parser', function() {
1029
1029
// mongodb://localhost.build.10gen.cc:27018,localhost.build.10gen.cc:27017
1030
1030
parse ( 'mongodb+srv://test2.test.build.10gen.cc' , { } , function ( err , object ) {
1031
1031
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 }
1034
1034
] ;
1035
1035
expect ( err ) . to . be . null ;
1036
1036
expect ( object ) . to . exist ;
@@ -1052,7 +1052,7 @@ describe('Url SRV Parser', function() {
1052
1052
parse ( 'mongodb+srv://test3.test.build.10gen.cc' , { } , function ( err , object ) {
1053
1053
expect ( err ) . to . be . null ;
1054
1054
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' ) ;
1056
1056
expect ( object . servers [ 0 ] . port ) . to . equal ( 27017 ) ;
1057
1057
done ( ) ;
1058
1058
} ) ;
@@ -1143,7 +1143,7 @@ describe('Url SRV Parser', function() {
1143
1143
parse ( 'mongodb+srv://test6.test.build.10gen.cc' , { } , function ( err , object ) {
1144
1144
expect ( err ) . to . be . null ;
1145
1145
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' ) ;
1147
1147
expect ( object . servers [ 0 ] . port ) . to . equal ( 27017 ) ;
1148
1148
expect ( object . server_options . socketOptions . connectTimeoutMS ) . to . equal ( 200000 ) ;
1149
1149
expect ( object . server_options . socketOptions . socketTimeoutMS ) . to . equal ( 200000 ) ;
@@ -1167,7 +1167,7 @@ describe('Url SRV Parser', function() {
1167
1167
) {
1168
1168
expect ( err ) . to . be . null ;
1169
1169
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' ) ;
1171
1171
expect ( object . servers [ 0 ] . port ) . to . equal ( 27017 ) ;
1172
1172
// TODO check all options get override
1173
1173
expect ( object . db_options . connectTimeoutMS ) . to . equal ( 250000 ) ;
0 commit comments