Skip to content

Commit 3eb7cb8

Browse files
ajdavisbjori
authored andcommitted
CDRIVER-1508 fix multiple_selection_errors test
1 parent f39b477 commit 3eb7cb8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test-mongoc-topology.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,12 +771,14 @@ test_multiple_selection_errors (void *context)
771771

772772
/* Like:
773773
* "No suitable servers found (`serverselectiontryonce` set):
774-
* [Failed to resolve 'doesntexist'] [connection error]"
774+
* [Failed to resolve 'doesntexist']
775+
* [connection error calling ismaster on 'example.com:2']"
775776
*/
776777
ASSERT_CONTAINS (error.message,
777778
"No suitable servers found");
779+
/* either "connection error" or "connection timeout" calling ismaster */
778780
ASSERT_CONTAINS (error.message,
779-
"[connection error calling ismaster on 'example.com:2']");
781+
"calling ismaster on 'example.com:2'");
780782
ASSERT_CONTAINS (error.message,
781783
"[Failed to resolve 'doesntexist']");
782784

0 commit comments

Comments
 (0)