[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Parametrize timeout in bridge testing
commit 82f969df3d46f1dfd8382e5b77f227c25f463845
Author: Arturo Filastò <hellais@xxxxxxxxx>
Date: Tue Feb 7 23:03:40 2012 +0100
Parametrize timeout in bridge testing
---
refactor/ooni-probe.conf | 1 +
refactor/tests/bridget.py | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/refactor/ooni-probe.conf b/refactor/ooni-probe.conf
index 75302f8..2e22961 100644
--- a/refactor/ooni-probe.conf
+++ b/refactor/ooni-probe.conf
@@ -51,6 +51,7 @@ keyword_method = http,telnet
### Tor bridge testing
tor_bridges = bridgetests.txt
+tor_bridges_timeout = 40
[report]
file = report.log
diff --git a/refactor/tests/bridget.py b/refactor/tests/bridget.py
index 71d210a..83ff72f 100644
--- a/refactor/tests/bridget.py
+++ b/refactor/tests/bridget.py
@@ -54,6 +54,8 @@ DataDirectory %s
def connect(self, bridge, timeout=None):
if not timeout:
+ if self.config.tests.tor_bridges_timeout:
+ self.timeout = self.config.tests.tor_bridges_timeout
timeout = self.timeout
torrc, tordir = self.writetorrc(bridge)
cmd = ["tor", "-f", torrc]
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits