commit 54d017322c9abdf1acacd2da91be655a724d79e1 Author: Arturo Filastò art@fuffa.org Date: Mon Aug 18 13:02:37 2014 +0200
Fix unittest for tor silly listener --- ooni/tests/test_settings.py | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/ooni/tests/test_settings.py b/ooni/tests/test_settings.py index e022a64..9687965 100644 --- a/ooni/tests/test_settings.py +++ b/ooni/tests/test_settings.py @@ -47,6 +47,10 @@ class TestSettings(ConfigTestCase): class SillyFactory(Factory): protocol = SillyProtocol
+ def buildProtocol(self, address): + p = self.protocol(self) + return p + self.silly_listener = reactor.listenTCP(self.conf.tor.socks_port, SillyFactory())
def test_vanilla_configuration(self):
tor-commits@lists.torproject.org