Skip to content

Commit c7149d9

Browse files
committed
print error detail in test_ismaster_impl
1 parent 7bb0401 commit c7149d9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test-mongoc-async.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ test_ismaster_impl (bool with_ssl)
9898
sizeof (server_addr),
9999
0);
100100

101-
assert (r == 0 || errno == EAGAIN || errno == EINPROGRESS);
101+
if (!(r == 0 || errno == EAGAIN || errno == EINPROGRESS)) {
102+
fprintf (stderr, "mongoc_socket_connect unexpected return: %d\n", r);
103+
fflush (stderr);
104+
abort ();
105+
}
102106

103107
sock_streams[i] = mongoc_stream_socket_new (conn_sock);
104108

0 commit comments

Comments
 (0)