@@ -94,9 +94,13 @@ selects_server (mongoc_client_t *client,
94
94
mongoc_server_description_t * sd ;
95
95
bool result ;
96
96
97
- ASSERT_OR_PRINT (sd = mongoc_topology_select (
98
- client -> topology , MONGOC_SS_READ ,
99
- read_prefs , 15 , & error ), error );
97
+ sd = mongoc_topology_select (client -> topology , MONGOC_SS_READ ,
98
+ read_prefs , 15 , & error );
99
+
100
+ if (!sd ) {
101
+ fprintf (stderr , "%s\n" , error .message );
102
+ return false;
103
+ }
100
104
101
105
result = (0 == strcmp (mongoc_server_description_host (sd )-> host_and_port ,
102
106
mock_server_get_host_and_port (server )));
@@ -167,7 +171,7 @@ _test_topology_reconcile_rs (bool pooled)
167
171
RS_RESPONSE_TO_ISMASTER (server1 , true, true, server1 ); /* server0 absent */
168
172
169
173
if (!pooled ) {
170
- /* TODO: SPEC-217 this selection should trigger one rescan but doesn't */
174
+ /* TODO: CDRIVER-699 this selection should trigger one rescan but doesn't */
171
175
assert (!client -> topology -> stale );
172
176
assert (!selects_server (client , tag_read_prefs , server1 ));
173
177
assert (client -> topology -> stale );
0 commit comments