aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_link_handshake.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-06-05 15:51:11 -0400
committerNick Mathewson <nickm@torproject.org>2017-06-05 15:51:11 -0400
commit91f49bc0f0759d0e0a794fbfe8cce5a9bb07e607 (patch)
treec1f8700691b13fd3a1f343ae9b2db68cd31d32e7 /src/test/test_link_handshake.c
parentd5acdadaeffa8e1c61abef5881e9cc6e42d9a755 (diff)
downloadtor-91f49bc0f0759d0e0a794fbfe8cce5a9bb07e607.tar.gz
tor-91f49bc0f0759d0e0a794fbfe8cce5a9bb07e607.zip
Fix unit tests to work after own_link_cert assertion
The assert_nonfatal() I had added was triggered by some of the code that tested the pre-ed case of CERTS cell generation.
Diffstat (limited to 'src/test/test_link_handshake.c')
-rw-r--r--src/test/test_link_handshake.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_link_handshake.c b/src/test/test_link_handshake.c
index ade7cf6998..66eeb724a2 100644
--- a/src/test/test_link_handshake.c
+++ b/src/test/test_link_handshake.c
@@ -149,6 +149,8 @@ test_link_handshake_certs_ok(void *arg)
/* If we're making a CERTS cell for an ed handshake, let's make sure we
* have some Ed25519 certificates and keys. */
init_mock_ed_keys(key2);
+ } else {
+ certs_cell_ed25519_disabled_for_testing = 1;
}
/* c1 has started_here == 1 */