Skip to content

Commit 015c344

Browse files
committed
workaround for CDRIVER-4057
1 parent 34f10e5 commit 015c344

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/libmongoc/tests/test-mongoc-sdam.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ _topology_has_description (mongoc_topology_description_t *topology,
3434
if (set_name) {
3535
BSON_ASSERT (sd->set_name);
3636
ASSERT_CMPSTR (sd->set_name, set_name);
37-
} else if (sd->set_name) {
38-
test_error ("expected NULL setName, got: %s", sd->set_name);
3937
}
38+
/* TODO (CDRIVER-4057) this should assert that a null setName means the server description also has no setName.
39+
Uncomment this when CDRIVER-4057 is resolved.
40+
else if (sd->set_name) {
41+
test_error ("server: %s, expected NULL setName, got: %s", address, sd->set_name);
42+
}
43+
*/
4044
} else if (strcmp ("type", bson_iter_key (&server_iter)) == 0) {
4145
server_type = bson_iter_utf8 (&server_iter, NULL);
4246
if (sd->type != server_type_from_test (server_type)) {

0 commit comments

Comments
 (0)