aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-05-08 15:16:32 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-05-10 14:51:38 +0800
commitc2876afafef392220cdb2baebace1d6d533f8d63 (patch)
treeab5964c0c8a80d14ca71f910ff681896901636f8
parent6ddb4888d2610df3bbb5024440caddde50fe9ad8 (diff)
[test/test_socks] Use a different port range
Seems on Travis CI, ports in the original range are often used.
-rw-r--r--test/test_socks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_socks.py b/test/test_socks.py
index dc9b8d276..d07003ceb 100644
--- a/test/test_socks.py
+++ b/test/test_socks.py
@@ -78,7 +78,7 @@ class TestMultipleSocks(unittest.TestCase):
class TestSocks(unittest.TestCase):
def setUp(self):
- self.port = random.randint(49152, 65535)
+ self.port = random.randint(20000, 30000)
self.server_process = subprocess.Popen([
'srelay', '-f', '-i', '127.0.0.1:%d' % self.port],
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)