Skip to content
Snippets Groups Projects
Commit 396e970c authored by Sebastian Lobinger's avatar Sebastian Lobinger
Browse files

update test_sams_proxy.py massive performance improvements (sleep 0.01)

parent d8ad72ef
No related branches found
No related tags found
1 merge request!3Resolve "SAMSApp fügt urlRules für SAMSProxies hinzu"
...@@ -17,12 +17,12 @@ class TestSAMSHub(unittest.TestCase): ...@@ -17,12 +17,12 @@ class TestSAMSHub(unittest.TestCase):
#apiApp.config['TESTING'] = True #apiApp.config['TESTING'] = True
thApi = FlaskInThread(apiApp, host="localhost", port=4711) thApi = FlaskInThread(apiApp, host="localhost", port=4711)
thApi.start() thApi.start()
time.sleep(1) time.sleep(0.01)
def tearDown(self): def tearDown(self):
response = requests.get('http://localhost:4711/shutdown') response = requests.get('http://localhost:4711/shutdown')
print(response.content.decode('utf-8')) print(response.content.decode('utf-8'))
time.sleep(1) time.sleep(0.01)
def test_proxy_spec_mandatory (self): def test_proxy_spec_mandatory (self):
""" SAMSProxy needs a proxy_spec dict, raies error if not supplied""" """ SAMSProxy needs a proxy_spec dict, raies error if not supplied"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment