Skip to content

Commit

Permalink
use ephemeral ports for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandezcuesta committed Nov 17, 2020
1 parent 8d32f6b commit 9739703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_forwarder.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def _do_forwarding(self, timeout=sshtunnel.SSH_TIMEOUT):
self.log.debug('{0} connection closed.'.format(info))

def randomize_eport(self):
return self.eport + random.randint(1, 999)
return random.randint(49152, 65535)

def test_echo_server(self):
with self._test_server(
Expand Down

0 comments on commit 9739703

Please sign in to comment.