aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_link_handshake.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-08 11:16:09 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-08 11:16:09 -0400
commitf9cb9d899061770c6d3b3966c08d5e8d844f395a (patch)
tree5a9501a26646bc4dcd74df8a0387a271318f6a9c /src/test/test_link_handshake.c
parentf64f293c48e2293e18d9e183938b21add0643745 (diff)
downloadtor-f9cb9d899061770c6d3b3966c08d5e8d844f395a.tar.gz
tor-f9cb9d899061770c6d3b3966c08d5e8d844f395a.zip
more consistent use of expect_log_msg_containing
Diffstat (limited to 'src/test/test_link_handshake.c')
-rw-r--r--src/test/test_link_handshake.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/test/test_link_handshake.c b/src/test/test_link_handshake.c
index e1fd14bc5f..1d60a49f30 100644
--- a/src/test/test_link_handshake.c
+++ b/src/test/test_link_handshake.c
@@ -344,8 +344,7 @@ test_link_handshake_recv_certs_ok_server(void *arg)
tt_int_op(0, ==, mock_send_authenticate_called); \
tt_int_op(0, ==, mock_send_netinfo_called); \
if (require_failure_message) { \
- tt_assert(mock_saved_log_has_message_containing( \
- require_failure_message)); \
+ expect_log_msg_containing(require_failure_message); \
} \
done: \
teardown_capture_of_logs(prev_level); \
@@ -622,8 +621,7 @@ test_link_handshake_recv_authchallenge_ok_unrecognized(void *arg)
tt_int_op(0, ==, mock_send_authenticate_called); \
tt_int_op(0, ==, mock_send_netinfo_called); \
if (require_failure_message) { \
- tt_assert(mock_saved_log_has_message_containing( \
- require_failure_message)); \
+ expect_log_msg_containing(require_failure_message); \
} \
done: \
teardown_capture_of_logs(prev_level); \
@@ -862,8 +860,7 @@ test_link_handshake_auth_cell(void *arg)
tt_int_op(mock_close_called, ==, 1); \
tt_int_op(d->c2->handshake_state->authenticated, ==, 0); \
if (require_failure_message) { \
- tt_assert(mock_saved_log_has_message_containing( \
- require_failure_message)); \
+ expect_log_msg_containing(require_failure_message); \
} \
done: \
teardown_capture_of_logs(prev_level); \