[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Reduce sleep for events unit test
commit d4a6ad07ab714a73cc17500f90b42a0c4acf6882
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Tue Jan 31 19:12:02 2017 -0800
Reduce sleep for events unit test
Easy change to save 200ms.
---
test/unit/response/events.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/unit/response/events.py b/test/unit/response/events.py
index 80cc9f1..908ec57 100644
--- a/test/unit/response/events.py
+++ b/test/unit/response/events.py
@@ -476,7 +476,7 @@ class TestEvents(unittest.TestCase):
def event_sender():
for index in range(3):
print_bw(_get_event('650 BW 15 25'))
- time.sleep(0.05)
+ time.sleep(0.0005)
controller = Mock(spec = Controller)
@@ -485,7 +485,7 @@ class TestEvents(unittest.TestCase):
events_thread = threading.Thread(target = event_sender)
events_thread.start()
- time.sleep(0.2)
+ time.sleep(0.002)
events_thread.join()
def test_event(self):
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits