aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_ntor_v3.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2023-06-20 23:25:27 +0000
committerMike Perry <mikeperry-git@torproject.org>2023-06-23 15:08:54 +0000
commit646212ce586a3cc9badf2c268cbc450b207d03c6 (patch)
tree534a208e3ed10ccf994bba23f25710a7c11278de /src/test/test_ntor_v3.c
parent9d022be9fcdf82a107336cdf8e5c77413a699b5f (diff)
downloadtor-646212ce586a3cc9badf2c268cbc450b207d03c6.tar.gz
tor-646212ce586a3cc9badf2c268cbc450b207d03c6.zip
Bug 40709: Update and clean up tests for consensus params
Diffstat (limited to 'src/test/test_ntor_v3.c')
-rw-r--r--src/test/test_ntor_v3.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_ntor_v3.c b/src/test/test_ntor_v3.c
index 1d06403076..c4a7d04deb 100644
--- a/src/test/test_ntor_v3.c
+++ b/src/test/test_ntor_v3.c
@@ -13,7 +13,7 @@
#include "core/crypto/onion_crypto.h"
#include "core/or/extend_info_st.h"
#include "core/or/crypt_path_st.h"
-#define TOR_CONGESTION_CONTROL_PRIVATE
+#define TOR_CONGESTION_CONTROL_COMMON_PRIVATE
#include "core/or/congestion_control_common.h"
#include "app/config/config.h"
@@ -262,6 +262,7 @@ test_ntor3_handshake(void *arg)
tt_int_op(serv_params.cc_enabled, OP_EQ, 0);
/* client off, serv on -> off */
+ congestion_control_set_cc_disabled();
serv_ns_params.cc_enabled = 1;
run_full_handshake(&serv_ns_params, &client_params, &serv_params);
tt_int_op(client_params.cc_enabled, OP_EQ, 0);