tests: use gunicorn for testing. This is close to production testing

and actually will reproduce any chunked encoding problems as we hit on production
servers.
This commit is contained in:
Marcin Kuzminski 2017-12-18 12:29:33 +01:00
parent fad0fcf1c3
commit aa84b1a0e4
19 changed files with 126 additions and 189 deletions

View file

@ -171,7 +171,7 @@ def rc_web_server(
host_url = 'http://' + get_host_url(rc_web_server_config)
assert_no_running_instance(host_url)
command = ['pserve', rc_web_server_config]
command = ['gunicorn', '--worker-class', 'gevent', '--paste', rc_web_server_config]
print('Starting rhodecode server: {}'.format(host_url))
print('Command: {}'.format(command))