[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [chutney/master] tests: Stop requiring a tor (or SOCKS) proxy for the Traffic.py tests



commit 25162cb860eb0dab828aae9718e758628b0b2d83
Author: teor <teor@xxxxxxxxxxxxxx>
Date:   Mon Apr 8 10:08:00 2019 +1000

    tests: Stop requiring a tor (or SOCKS) proxy for the Traffic.py tests
    
    Part of 30063.
---
 lib/chutney/Traffic.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/chutney/Traffic.py b/lib/chutney/Traffic.py
index 7577d0f..cb0af2f 100755
--- a/lib/chutney/Traffic.py
+++ b/lib/chutney/Traffic.py
@@ -431,11 +431,11 @@ class TrafficTester():
 def main():
     """Test the TrafficTester by sending and receiving some data."""
     DATA = "a foo is a bar" * 1000
-    proxy = ('localhost', 9008)
     bind_to = ('localhost', int(sys.argv[1]))
 
     tt = TrafficTester(bind_to, DATA)
-    tt.add(Source(tt, bind_to, DATA, proxy))
+    # Don't use a proxy for self-testing, so that we avoid tor entirely
+    tt.add(Source(tt, bind_to, DATA))
     success = tt.run()
 
     if success:



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits