Skip to content

Commit 18da138

Browse files
committed
style in test-mongoc-cluster.c
1 parent f1696e7 commit 18da138

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

tests/test-mongoc-cluster.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ test_get_max_msg_size (void)
101101
char *error_message = bson_strdup_printf ( \
102102
"Failed to read 4 bytes from socket within %d milliseconds.", \
103103
socket_timeout_ms); \
104-
BSON_ASSERT (!future_get_bool (future)); \
105-
BSON_ASSERT (mongoc_cursor_error (cursor, &error)); \
104+
assert (!future_get_bool (future)); \
105+
assert (mongoc_cursor_error (cursor, &error)); \
106106
ASSERT_CMPINT (error.domain, ==, MONGOC_ERROR_STREAM); \
107107
ASSERT_CMPINT (error.code, ==, MONGOC_ERROR_STREAM_SOCKET); \
108108
ASSERT_CMPSTR (error.message, error_message); \
@@ -112,14 +112,13 @@ test_get_max_msg_size (void)
112112

113113
#define START_QUERY(client_port_variable) do { \
114114
cursor = mongoc_collection_find (collection, \
115-
MONGOC_QUERY_NONE, \
116-
0, 0, 0, tmp_bson ("{}"), \
117-
NULL, NULL); \
115+
MONGOC_QUERY_NONE, \
116+
0, 0, 0, tmp_bson ("{}"), \
117+
NULL, NULL); \
118118
future = future_cursor_next (cursor, &doc); \
119119
request = mock_server_receives_query (server, "test.test", \
120-
MONGOC_QUERY_SLAVE_OK, 0, 0, \
121-
"{}", NULL); \
122-
BSON_ASSERT (request); \
120+
MONGOC_QUERY_SLAVE_OK, 0, 0, \
121+
"{}", NULL); \
123122
client_port_variable = request_get_client_port (request); \
124123
} while (0)
125124

0 commit comments

Comments
 (0)