]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a unit test (broken by recent 20499 hacking)
authorNick Mathewson <nickm@torproject.org>
Mon, 7 Nov 2016 21:02:55 +0000 (16:02 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 7 Nov 2016 21:02:55 +0000 (16:02 -0500)
src/test/test_dir.c

index 77c5dc13c8bf062973078bc7b552c07881157284..6a39b688704d6cdc410057aa88ccfe541b2eec14 100644 (file)
@@ -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;