From 60c3bc46b8a86e5a00e3b0da3c1b6f4000794657 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Fri, 22 May 2020 20:27:42 +0200 Subject: [PATCH] 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. --- tests/test_upload_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_upload_script.py b/tests/test_upload_script.py index cbd6fdc..3931521 100644 --- a/tests/test_upload_script.py +++ b/tests/test_upload_script.py @@ -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)