File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -502,6 +502,7 @@ call_ismaster (bson_t *reply)
502
502
uri_str = test_framework_get_uri_str_from_env ();
503
503
uri = mongoc_uri_new (uri_str );
504
504
assert (uri );
505
+ mongoc_uri_set_option_as_int32 (uri , "connectTimeoutMS" , 1000 );
505
506
mongoc_uri_set_option_as_int32 (uri , "serverSelectionTimeoutMS" , 1000 );
506
507
507
508
client = mongoc_client_new_from_uri (uri );
@@ -605,9 +606,6 @@ test_framework_get_uri_str_no_auth (const char *database_name)
605
606
}
606
607
607
608
/* by now the string ends in "?" or "&", we can add options to it */
608
- bson_string_append (uri_string ,
609
- "connectTimeoutMS=1000&serverSelectionTimeoutMS=1000" );
610
-
611
609
if (test_framework_get_ssl ()) {
612
610
bson_string_append (uri_string , "&ssl=true" );
613
611
}
You can’t perform that action at this time.
0 commit comments