aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2021-10-21 12:35:36 +0000
committerAlexander Færøy <ahf@torproject.org>2021-10-21 12:35:36 +0000
commitbd1c14f0156c4d166ed1706544242e31d7ddceff (patch)
treebc0eba46fb171915cdfa876eb928cce943077dfb /src/test
parent1e08efdb5891008f8180603bccf461c467275f57 (diff)
parent0135fb028c8ca0ce310009f20efef89e53a36f2c (diff)
downloadtor-bd1c14f0156c4d166ed1706544242e31d7ddceff.tar.gz
tor-bd1c14f0156c4d166ed1706544242e31d7ddceff.zip
Merge branch 'maint-0.4.5' into maint-0.4.6
Diffstat (limited to 'src/test')
-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 7338340e25..dbedc021e4 100644
--- a/src/test/test_relay.c
+++ b/src/test/test_relay.c
@@ -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));