[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Lower work done by couple BaseController tests
commit 30ea552a92346cc733bcac82e7d16cdc8ac1efa8
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Fri Jan 20 10:42:28 2017 -0800
Lower work done by couple BaseController tests
Reducing the amount our test_connect_repeatedly and test_msg_repeatedly tests
hammer our controller so the tests don't take so long (drops from 1.6s to 0.3s
on my netbook).
---
test/integ/control/base_controller.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/integ/control/base_controller.py b/test/integ/control/base_controller.py
index 5beffc2..2507293 100644
--- a/test/integ/control/base_controller.py
+++ b/test/integ/control/base_controller.py
@@ -54,7 +54,7 @@ class TestBaseController(unittest.TestCase):
with test.runner.get_runner().get_tor_socket() as control_socket:
controller = stem.control.BaseController(control_socket)
- for _ in range(250):
+ for _ in range(50):
controller.connect()
controller.close()
@@ -105,7 +105,7 @@ class TestBaseController(unittest.TestCase):
controller = stem.control.BaseController(control_socket)
def run_getinfo():
- for _ in range(150):
+ for _ in range(50):
try:
controller.msg('GETINFO version')
controller.msg('GETINFO blarg')
@@ -121,7 +121,7 @@ class TestBaseController(unittest.TestCase):
msg_thread.setDaemon(True)
msg_thread.start()
- for index in range(100):
+ for index in range(50):
controller.connect()
controller.close()
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits