Use fixed port number for our python tests

Randomly generated port numbers worked just find on developer's
machines but Koji have issues with some of the numbers. Let's not
burn hours trying to figure out which ports work and which doesn't
and just settle on one fixed number. It is more deterministic and
reproducible anyway.
This commit is contained in:
Jakub Kadlcik 2020-05-22 20:27:42 +02:00
parent 7d376539a3
commit 60c3bc46b8

View file

@ -74,7 +74,7 @@ class UploadTest(unittest.TestCase):
def setUp(self):
self.hostname = 'localhost'
self.port = random.randrange(59898, 65534)
self.port = 8888
# Create temporary filesystem tree
self.topdir = tempfile.mkdtemp()
os.chmod(self.topdir, 0o0777)