mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-27 01:32:28 +02:00
[test/test_socks] Use a different port range
Seems on Travis CI, ports in the original range are often used.
This commit is contained in:
parent
6ddb4888d2
commit
c2876afafe
@ -78,7 +78,7 @@ def test_secondary_proxy_https(self):
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user