aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_relay.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-20 14:19:47 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-20 14:19:47 -0400
commita406255cf395b053d6216df4252ad1320ab73a54 (patch)
tree5f092bff9e424b1218f05540408dc117a80e6f81 /src/test/test_relay.c
parent4e2028152d31e27c44d0c2ef31dca829c6ae2d2e (diff)
parent72e30f26ec291baba202b71e121c3211af2db371 (diff)
downloadtor-a406255cf395b053d6216df4252ad1320ab73a54.tar.gz
tor-a406255cf395b053d6216df4252ad1320ab73a54.zip
Merge branch 'bug23512-v4-029-fixes'
Diffstat (limited to 'src/test/test_relay.c')
-rw-r--r--src/test/test_relay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_relay.c b/src/test/test_relay.c
index 65b9a2f940..c3fd6578e1 100644
--- a/src/test/test_relay.c
+++ b/src/test/test_relay.c
@@ -113,7 +113,7 @@ test_relay_close_circuit(void *arg)
tt_int_op(new_count, OP_EQ, old_count + 1);
/* Ensure our write totals are 0 */
- tt_int_op(find_largest_max(write_array), OP_EQ, 0);
+ tt_u64_op(find_largest_max(write_array), OP_EQ, 0);
/* Mark the circuit for close */
circuit_mark_for_close(TO_CIRCUIT(orcirc), 0);
@@ -122,7 +122,7 @@ test_relay_close_circuit(void *arg)
advance_obs(write_array);
commit_max(write_array);
/* Check for two cells plus overhead */
- tt_int_op(find_largest_max(write_array), OP_EQ,
+ tt_u64_op(find_largest_max(write_array), OP_EQ,
2*(get_cell_network_size(nchan->wide_circ_ids)
+TLS_PER_CELL_OVERHEAD));