Merge pull request #35 from FrostyX/static-port-number-for-tests

Use fixed port number for our python tests
This commit is contained in:
Michal Novotný 2020-05-25 01:14:38 +02:00 committed by GitHub
commit d749fa164a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -110,11 +110,11 @@ exit 0
%check
#%if 0%{?rhel} && 0%{?rhel} < 8
#nosetests .
#%else
#nosetests-3 .
#%endif
%if 0%{?rhel} && 0%{?rhel} < 8
nosetests .
%else
nosetests-3 .
%endif
%install

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)