mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 15:02:54 +00:00
Merge pull request #35 from FrostyX/static-port-number-for-tests
Use fixed port number for our python tests
This commit is contained in:
commit
d749fa164a
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue