diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-20 14:18:09 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-20 14:18:09 -0400 |
commit | 72e30f26ec291baba202b71e121c3211af2db371 (patch) | |
tree | 7f64d5178573980a22ca4126fc6797b77b40cbeb /src/test/test_relay.c | |
parent | 6af352172d3dbf1571c8cb62cd0a618f4e2355d1 (diff) | |
download | tor-72e30f26ec291baba202b71e121c3211af2db371.tar.gz tor-72e30f26ec291baba202b71e121c3211af2db371.zip |
Fix a pair of errors in bug23512
Diffstat (limited to 'src/test/test_relay.c')
-rw-r--r-- | src/test/test_relay.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/test_relay.c b/src/test/test_relay.c index 1ec538395b..57dcb2406a 100644 --- a/src/test/test_relay.c +++ b/src/test/test_relay.c @@ -111,7 +111,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); @@ -120,7 +120,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)); @@ -233,4 +233,3 @@ struct testcase_t relay_tests[] = { TT_FORK, NULL, NULL }, END_OF_TESTCASES }; - |