summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-04-01 00:21:55 -0400
committerNick Mathewson <nickm@torproject.org>2012-04-01 00:21:55 -0400
commitfc23af45d1c4167f91606363d85bd0c8c93eb7e9 (patch)
treec59493f49586178c0dfd181bef955e96f940c90c /test
parent09cbc3dcfb69f5e29b72f63e6cbffc93d7623942 (diff)
downloadlibevent-fc23af45d1c4167f91606363d85bd0c8c93eb7e9.tar.gz
Increase duration and tolerance on http/connection_retry test
This takes its runtime back up a little again, but not so high as it was before. It appears to address the heisenbug issues of github nmathewson/libevent issue #49. So far.
Diffstat (limited to 'test')
-rw-r--r--test/regress_http.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/regress_http.c b/test/regress_http.c
index ef88c459..82f62594 100644
--- a/test/regress_http.c
+++ b/test/regress_http.c
@@ -3149,8 +3149,8 @@ http_connection_retry_test(void *arg)
test_ok = 0;
{
- const struct timeval tv_timeout = { 0, 300000 };
- const struct timeval tv_retry = { 0, 200000 };
+ const struct timeval tv_timeout = { 0, 500000 };
+ const struct timeval tv_retry = { 0, 500000 };
evhttp_connection_set_timeout_tv(evcon, &tv_timeout);
evhttp_connection_set_initial_retry_tv(evcon, &tv_retry);
}
@@ -3171,8 +3171,8 @@ http_connection_retry_test(void *arg)
event_base_dispatch(data->base);
evutil_gettimeofday(&tv_end, NULL);
- /* fails fast, .2 sec to wait to retry, fails fast again. */
- test_timeval_diff_eq(&tv_start, &tv_end, 200);
+ /* fails fast, .5 sec to wait to retry, fails fast again. */
+ test_timeval_diff_leq(&tv_start, &tv_end, 500, 200);
tt_assert(test_ok == 1);
@@ -3208,7 +3208,7 @@ http_connection_retry_test(void *arg)
event_base_dispatch(data->base);
evutil_gettimeofday(&tv_end, NULL);
/* We'll wait twice as long as we did last time. */
- test_timeval_diff_eq(&tv_start, &tv_end, 400);
+ test_timeval_diff_leq(&tv_start, &tv_end, 1000, 400);
tt_int_op(test_ok, ==, 1);