소스 검색

Fix a unit test (broken by recent 20499 hacking)

Nick Mathewson 8 년 전
부모
커밋
d2071c36f6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/test/test_dir.c

+ 2 - 2
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_GE, min_delay);
     tt_int_op(increment, OP_LE, max_delay);
     tt_int_op(increment, OP_LE, max_delay);
     tt_int_op(increment, OP_GE, old_increment);
     tt_int_op(increment, OP_GE, old_increment);
-    /* We at most double, and maybe add one */
+    /* We at most quadruple, and maybe add one */
-    tt_int_op(increment, OP_LE, 2 * old_increment + 1);
+    tt_int_op(increment, OP_LE, 4 * old_increment + 1);
 
 
     /* Advance */
     /* Advance */
     current_time += increment;
     current_time += increment;