[tor/master] test: Adapt HS DoS test to use latest parameter

commit 1c554334ac6a7d39c69ec8dd26702a613bb899b4 Author: David Goulet <dgoulet@torproject.org> Date: Wed Aug 14 10:41:40 2019 -0400 test: Adapt HS DoS test to use latest parameter We added a flag on the circuit to know if the DoS defenses are enabled or not. Before, it was solely the consensus parameter. Part of #30924 Signed-off-by: David Goulet <dgoulet@torproject.org> --- src/test/test_hs_dos.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/test_hs_dos.c b/src/test/test_hs_dos.c index e2b211d5d..f92d953fa 100644 --- a/src/test/test_hs_dos.c +++ b/src/test/test_hs_dos.c @@ -57,6 +57,7 @@ test_can_send_intro2(void *arg) /* Make that circuit a service intro point. */ circuit_change_purpose(TO_CIRCUIT(or_circ), CIRCUIT_PURPOSE_INTRO_POINT); + or_circ->introduce2_dos_defense_enabled = 1; /* Initialize the INTRODUCE2 token bucket for the rate limiting. */ token_bucket_ctr_init(&or_circ->introduce2_bucket, hs_dos_get_intro2_rate_param(),
participants (1)
-
nickm@torproject.org