Browse Source

tests: Stop requiring a tor (or SOCKS) proxy for the Traffic.py tests

Part of 30063.
teor 5 years ago
parent
commit
25162cb860
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/chutney/Traffic.py

+ 2 - 2
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: