commit bd1d3f345f25835a52813449f4bb45bdddf32eaf Author: Damian Johnson atagar@torproject.org Date: Mon May 7 08:37:34 2012 -0700
Bumping runtime of async event test by a second
Testing for asynchronous events relies on BW events happening every second by checking that we get two of them. This is not reliable since we don't have a hard assurance about its rate. Giving the test an extra second to make it more reliable. --- test/integ/control/base_controller.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/integ/control/base_controller.py b/test/integ/control/base_controller.py index cb5eaf2..4a8033a 100644 --- a/test/integ/control/base_controller.py +++ b/test/integ/control/base_controller.py @@ -167,7 +167,7 @@ class TestBaseController(unittest.TestCase):
start_time = time.time()
- while (time.time() - start_time) < 2: + while (time.time() - start_time) < 3: test.runner.exercise_controller(self, controller)
# Concurrently shut down the controller. We need to do this in another
tor-commits@lists.torproject.org