mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
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.
This commit is contained in:
parent
9aca7d4730
commit
b45ae1b002
@ -176,7 +176,7 @@ test_dos_bucket_refill(void *arg)
|
|||||||
/* Initialize DoS subsystem and get relevant limits */
|
/* Initialize DoS subsystem and get relevant limits */
|
||||||
dos_init();
|
dos_init();
|
||||||
uint32_t max_circuit_count = get_param_cc_circuit_burst(NULL);
|
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
|
/* Check that the circuit rate is a positive number and smaller than the max
|
||||||
* circuit count */
|
* circuit count */
|
||||||
tt_int_op(circ_rate, OP_GT, 1);
|
tt_int_op(circ_rate, OP_GT, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user