mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge remote-tracking branch 'tor-gitlab/mr/338'
This commit is contained in:
@@ -98,7 +98,7 @@ test_relay_close_circuit(void *arg)
|
||||
tt_int_op(new_count, OP_EQ, old_count + 1);
|
||||
|
||||
/* Ensure our write totals are 0 */
|
||||
tt_u64_op(find_largest_max(write_array), OP_EQ, 0);
|
||||
tt_u64_op(find_largest_max(write_array, 86400), OP_EQ, 0);
|
||||
|
||||
/* Mark the circuit for close */
|
||||
circuit_mark_for_close(TO_CIRCUIT(orcirc), 0);
|
||||
@@ -107,7 +107,7 @@ test_relay_close_circuit(void *arg)
|
||||
advance_obs(write_array);
|
||||
commit_max(write_array);
|
||||
/* Check for two cells plus overhead */
|
||||
tt_u64_op(find_largest_max(write_array), OP_EQ,
|
||||
tt_u64_op(find_largest_max(write_array, 86400), OP_EQ,
|
||||
2*(get_cell_network_size(nchan->wide_circ_ids)
|
||||
+TLS_PER_CELL_OVERHEAD));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user