aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_channeltls.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2021-09-28 21:19:27 +0000
committerDavid Goulet <dgoulet@torproject.org>2021-10-04 10:45:46 -0400
commit6dae9903b1d5fe3c5df712eb99076a9adf9d5c8b (patch)
tree482f37bd6bfed74d73bdffd393096ff4e38d7030 /src/test/test_channeltls.c
parent98be8634faf4405edc5388c64d9f834b6ae5b4b1 (diff)
downloadtor-6dae9903b1d5fe3c5df712eb99076a9adf9d5c8b.tar.gz
tor-6dae9903b1d5fe3c5df712eb99076a9adf9d5c8b.zip
Turn orconn watermarks into consensus parameters.
Tuning these may reduce memory usage and latency.
Diffstat (limited to 'src/test/test_channeltls.c')
-rw-r--r--src/test/test_channeltls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_channeltls.c b/src/test/test_channeltls.c
index 5219c86097..ca7fee2c53 100644
--- a/src/test/test_channeltls.c
+++ b/src/test/test_channeltls.c
@@ -20,6 +20,7 @@
#include "lib/tls/tortls.h"
#include "core/or/or_connection_st.h"
+#include "core/or/congestion_control_common.h"
/* Test suite stuff */
#include "test/test.h"
@@ -155,7 +156,7 @@ test_channeltls_num_bytes_queued(void *arg)
* - 2 cells.
*/
n = ch->num_cells_writeable(ch);
- tt_int_op(n, OP_EQ, CEIL_DIV(OR_CONN_HIGHWATER, 512) - 2);
+ tt_int_op(n, OP_EQ, CEIL_DIV(or_conn_highwatermark(), 512) - 2);
UNMOCK(buf_datalen);
tlschan_buf_datalen_mock_target = NULL;
tlschan_buf_datalen_mock_size = 0;