The port attribute definition must come first

This commit is contained in:
Pedro Algarvio 2017-03-12 18:05:30 +00:00
parent 6fe53339ce
commit 410b583a63
No known key found for this signature in database
GPG Key ID: BB36BF6584A298FF

View File

@ -57,10 +57,10 @@ class ArchiveTest(integration.ModuleCase,
start tornado app on thread
and wait till its running
'''
cls.server_port = get_unused_localhost_port()
cls.server_thread = threading.Thread(target=cls.webserver)
cls.server_thread.daemon = True
cls.server_thread.start()
cls.server_port = get_unused_localhost_port()
cls.archive_tar_source = 'http://localhost:{0}/custom.tar.gz'.format(cls.server_port)
# check if tornado app is up
port_closed = True