fix(tests): fixed potential freeze on vcs_operations tests
This commit is contained in:
parent
2b13bc5a0a
commit
45775abb81
2 changed files with 8 additions and 6 deletions
|
|
@ -58,7 +58,7 @@ def vcsserver_factory(tmpdir_factory):
|
|||
"""
|
||||
|
||||
def factory(request, overrides=(), vcsserver_port=None,
|
||||
log_file=None, workers='2'):
|
||||
log_file=None, workers='3'):
|
||||
|
||||
if vcsserver_port is None:
|
||||
vcsserver_port = get_available_port()
|
||||
|
|
|
|||
|
|
@ -143,13 +143,14 @@ class RcVCSServer(ServerBase):
|
|||
log_file_name = 'rc-vcsserver.log'
|
||||
status_url_tmpl = 'http://{host}:{port}/status'
|
||||
|
||||
def __init__(self, config_file, log_file=None, workers='2'):
|
||||
def __init__(self, config_file, log_file=None, workers='3'):
|
||||
super(RcVCSServer, self).__init__(config_file, log_file)
|
||||
self._args = [
|
||||
'gunicorn',
|
||||
'--bind', self.bind_addr,
|
||||
'--worker-class', 'gthread',
|
||||
'--backlog', '16',
|
||||
'--worker-class', 'sync',
|
||||
'--threads', '1',
|
||||
'--backlog', '8',
|
||||
'--timeout', '300',
|
||||
'--workers', workers,
|
||||
'--paste', self.config_file]
|
||||
|
|
@ -180,13 +181,14 @@ class RcWebServer(ServerBase):
|
|||
log_file_name = 'rc-web.log'
|
||||
status_url_tmpl = 'http://{host}:{port}/_admin/ops/ping'
|
||||
|
||||
def __init__(self, config_file, log_file=None, workers='1'):
|
||||
def __init__(self, config_file, log_file=None, workers='2'):
|
||||
super(RcWebServer, self).__init__(config_file, log_file)
|
||||
self._args = [
|
||||
'gunicorn',
|
||||
'--bind', self.bind_addr,
|
||||
'--worker-class', 'gthread',
|
||||
'--backlog', '16',
|
||||
'--threads', '4',
|
||||
'--backlog', '8',
|
||||
'--timeout', '300',
|
||||
'--workers', workers,
|
||||
'--paste', self.config_file]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue