Skip to content

Commit 752e631

Browse files
committed
CDRIVER-939: Fix test when configured to run against SSL server
1 parent 5a37ac0 commit 752e631

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/test-mongoc-client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ test_mongoc_client_unix_domain_socket (void *context)
863863

864864
uri_str = test_framework_get_unix_domain_socket_uri_str ();
865865
client = mongoc_client_new (uri_str);
866+
test_framework_set_ssl_opts (client);
866867

867868
assert (client);
868869

tests/test-mongoc-server-selection-errors.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ test_server_selection_uds_auth_failure (void *context)
8181
path = test_framework_get_unix_domain_socket_path ();
8282
uri = bson_strdup_printf ("mongodb://user:wrongpass@%s", path);
8383
client = mongoc_client_new (uri);
84+
test_framework_set_ssl_opts (client);
8485

8586
assert (client);
8687

@@ -105,6 +106,7 @@ test_server_selection_uds_not_found (void *context)
105106
bson_t reply;
106107

107108
client = mongoc_client_new ("mongodb:///tmp/mongodb-so-close.sock");
109+
test_framework_set_ssl_opts (client);
108110

109111
assert (client);
110112

0 commit comments

Comments
 (0)