aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_dos.c
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2018-01-31 11:11:08 +1100
committerDavid Goulet <dgoulet@torproject.org>2018-01-31 09:19:39 -0500
commitb45ae1b00237f0209c4ccce777de59581fda5e39 (patch)
tree6063d250c96db25e3a177c7ae540e7fe569b98f9 /src/test/test_dos.c
parent9aca7d47306222f2870ec16a7291a8215d6c3316 (diff)
downloadtor-b45ae1b00237f0209c4ccce777de59581fda5e39.tar.gz
tor-b45ae1b00237f0209c4ccce777de59581fda5e39.zip
test: Remove a redundant round from test_dos_bucket_refill
This round is left over from the tenths of a second code. Part of #25094.
Diffstat (limited to 'src/test/test_dos.c')
-rw-r--r--src/test/test_dos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_dos.c b/src/test/test_dos.c
index 5a8474ad8b..80abc19377 100644
--- a/src/test/test_dos.c
+++ b/src/test/test_dos.c
@@ -176,7 +176,7 @@ test_dos_bucket_refill(void *arg)
/* Initialize DoS subsystem and get relevant limits */
dos_init();
uint32_t max_circuit_count = get_param_cc_circuit_burst(NULL);
- int circ_rate = tor_lround(get_circuit_rate_per_second());
+ int circ_rate = get_circuit_rate_per_second();
/* Check that the circuit rate is a positive number and smaller than the max
* circuit count */
tt_int_op(circ_rate, OP_GT, 1);