[tor-commits] [ooni-probe/master] Fix bug in bridget

art at torproject.org art at torproject.org
Tue Feb 7 18:22:36 UTC 2012


commit 3ad40791278a53e95d7f327f64a075c77a3a0794
Author: Arturo Filastò <hellais at gmail.com>
Date:   Tue Feb 7 19:22:48 2012 +0100

    Fix bug in bridget
---
 refactor/tests/bridget.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/refactor/tests/bridget.py b/refactor/tests/bridget.py
index c3d0055..9ec499f 100644
--- a/refactor/tests/bridget.py
+++ b/refactor/tests/bridget.py
@@ -52,7 +52,9 @@ DataDirectory %s
         os.mkdir(datadir)
         return (randomname, datadir)
 
-    def connect(self, bridge, timeout=self.timeout):
+    def connect(self, bridge, timeout):
+        if not timeout:
+            timeout = self.timeout
         torrc, tordir = self.writetorrc(bridge)
         cmd = ["tor", "-f", torrc]
 



More information about the tor-commits mailing list