From 21205b837608e0b554c7b48ad2585ec5155b38bf Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 20 Apr 2012 11:53:32 -0400 Subject: [PATCH] Shave 700 msec off the persistent_timeout_jump test --- test/regress.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/regress.c b/test/regress.c index 070f9d0f..64262ce4 100644 --- a/test/regress.c +++ b/test/regress.c @@ -624,11 +624,12 @@ test_persistent_timeout_jump(void *ptr) int count = 0; struct timeval msec100 = { 0, 100 * 1000 }; struct timeval msec50 = { 0, 50 * 1000 }; + struct timeval msec300 = { 0, 300 * 1000 }; event_assign(&ev, data->base, -1, EV_PERSIST, periodic_timeout_cb, &count); event_add(&ev, &msec100); /* Wait for a bit */ - sleep(1); + evutil_usleep_(&msec300); event_base_loopexit(data->base, &msec50); event_base_dispatch(data->base); tt_int_op(count, ==, 1); -- 2.40.0