We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d1562b commit a021adaCopy full SHA for a021ada
tests/test-mongoc-handshake.c
@@ -257,7 +257,9 @@ test_mongoc_handshake_data_append_success (void)
257
ASSERT (BSON_ITER_HOLDS_UTF8 (&md_iter));
258
val = bson_iter_utf8 (&md_iter, NULL);
259
ASSERT (val);
260
- ASSERT (strstr (val, platform) != NULL);
+ if (strlen(val) < 250) { /* standard val are < 100, may be truncated on some platform */
261
+ ASSERT (strstr (val, platform) != NULL);
262
+ }
263
264
mock_server_replies_simple (request,
265
"{'ok': 1, 'ismaster': true}");
0 commit comments