[tor-commits] [tor/maint-0.2.9] Fix a unit test (broken by recent 20499 hacking)

nickm at torproject.org nickm at torproject.org
Mon Nov 7 21:11:07 UTC 2016


commit d2071c36f69249742de569dd3f5990ca16040228
Author: Nick Mathewson <nickm at torproject.org>
Date:   Mon Nov 7 16:02:55 2016 -0500

    Fix a unit test (broken by recent 20499 hacking)
---
 src/test/test_dir.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index 77c5dc1..6a39b68 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -3626,8 +3626,8 @@ test_dir_download_status_random_backoff(void *arg)
     tt_int_op(increment, OP_GE, min_delay);
     tt_int_op(increment, OP_LE, max_delay);
     tt_int_op(increment, OP_GE, old_increment);
-    /* We at most double, and maybe add one */
-    tt_int_op(increment, OP_LE, 2 * old_increment + 1);
+    /* We at most quadruple, and maybe add one */
+    tt_int_op(increment, OP_LE, 4 * old_increment + 1);
 
     /* Advance */
     current_time += increment;





More information about the tor-commits mailing list