mirror of https://github.com/zulip/zulip.git
tests: Remove use_db flag from test_server_running.
It was only ever true, since 2563f93d46
.
This commit is contained in:
parent
1928696829
commit
ece0aaa6cc
|
@ -51,7 +51,7 @@ def server_is_up(server: "subprocess.Popen[bytes]", log_file: Optional[str]) ->
|
|||
|
||||
@contextmanager
|
||||
def test_server_running(force: bool=False, external_host: str='testserver',
|
||||
log_file: Optional[str]=None, dots: bool=False, use_db: bool=True,
|
||||
log_file: Optional[str]=None, dots: bool=False,
|
||||
) -> Iterator[None]:
|
||||
log = sys.stdout
|
||||
if log_file:
|
||||
|
@ -63,8 +63,7 @@ def test_server_running(force: bool=False, external_host: str='testserver',
|
|||
|
||||
set_up_django(external_host)
|
||||
|
||||
if use_db:
|
||||
update_test_databases_if_required(rebuild_test_database=True)
|
||||
update_test_databases_if_required(rebuild_test_database=True)
|
||||
|
||||
# Run this not through the shell, so that we have the actual PID.
|
||||
run_dev_server_command = ['tools/run-dev.py', '--test', '--streamlined']
|
||||
|
|
|
@ -54,7 +54,7 @@ def vnu_servlet() -> Iterator[None]:
|
|||
|
||||
with vnu_servlet(), \
|
||||
test_server_running(options.force, external_host, log_file=LOG_FILE,
|
||||
dots=True, use_db=True):
|
||||
dots=True):
|
||||
ret_help_doc = subprocess.call(['scrapy', 'crawl_with_status', *extra_args,
|
||||
'help_documentation_crawler'],
|
||||
cwd='tools/documentation_crawler')
|
||||
|
|
Loading…
Reference in New Issue